#240e59 Color
Color Codes | |
---|---|
Hex Code | #240e59 |
RGB Code | rgb(36, 14, 89) |
HSL Code | hsl(258, 73%, 20%) |
#240e59 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(36, 14, 89); }
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(258, 73%, 20%); }
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 #240e59
RGB Code | Hex Code | Preview |
---|---|---|
rgb(36, 14, 89, 10%) | #240e591a | |
rgb(36, 14, 89, 20%) | #240e5933 | |
rgb(36, 14, 89, 40%) | #240e594C | |
rgb(36, 14, 89, 60%) | #240e5999 | |
rgb(36, 14, 89, 80%) | #240e59CC | |
rgb(36, 14, 89, 100%) | #240e59FF |
Saturated and desaturated colors of #240e59
HSL Code | Preview |
---|---|
hsl(258, 10%, 20%) | |
hsl(258, 20%, 20%) | |
hsl(258, 40%, 20%) | |
hsl(258, 60%, 20%) | |
hsl(258, 80%, 20%) | |
hsl(258, 100%, 20%) |
#240e59 Color Usage In CSS
body { color: #240e59; } p { color: rgb(36, 14, 89); } header { border-bottom:1px solid #240e59; }