#40539e Color
Color Codes | |
---|---|
Hex Code | #40539e |
RGB Code | rgb(64, 83, 158) |
HSL Code | hsl(228, 42%, 44%) |
#40539e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(64, 83, 158); }
R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.
hsl()
hsl(hue saturation lightness); hsl(hue saturation lightness / alpha); div { background-color: hsl(228, 42%, 44%); }
Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.
Lighter and darker colors of #40539e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(64, 83, 158, 10%) | #40539e1a | |
rgb(64, 83, 158, 20%) | #40539e33 | |
rgb(64, 83, 158, 40%) | #40539e4C | |
rgb(64, 83, 158, 60%) | #40539e99 | |
rgb(64, 83, 158, 80%) | #40539eCC | |
rgb(64, 83, 158, 100%) | #40539eFF |
Saturated and desaturated colors of #40539e
HSL Code | Preview |
---|---|
hsl(228, 10%, 44%) | |
hsl(228, 20%, 44%) | |
hsl(228, 40%, 44%) | |
hsl(228, 60%, 44%) | |
hsl(228, 80%, 44%) | |
hsl(228, 100%, 44%) |
#40539e Color Usage In CSS
body { color: #40539e; } p { color: rgb(64, 83, 158); } header { border-bottom:1px solid #40539e; }