#40456f Color
Color Codes | |
---|---|
Hex Code | #40456f |
RGB Code | rgb(64, 69, 111) |
HSL Code | hsl(234, 27%, 34%) |
#40456f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(64, 69, 111); }
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(234, 27%, 34%); }
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 #40456f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(64, 69, 111, 10%) | #40456f1a | |
rgb(64, 69, 111, 20%) | #40456f33 | |
rgb(64, 69, 111, 40%) | #40456f4C | |
rgb(64, 69, 111, 60%) | #40456f99 | |
rgb(64, 69, 111, 80%) | #40456fCC | |
rgb(64, 69, 111, 100%) | #40456fFF |
Saturated and desaturated colors of #40456f
HSL Code | Preview |
---|---|
hsl(234, 10%, 34%) | |
hsl(234, 20%, 34%) | |
hsl(234, 40%, 34%) | |
hsl(234, 60%, 34%) | |
hsl(234, 80%, 34%) | |
hsl(234, 100%, 34%) |
#40456f Color Usage In CSS
body { color: #40456f; } p { color: rgb(64, 69, 111); } header { border-bottom:1px solid #40456f; }