#24174d Color
Color Codes | |
---|---|
Hex Code | #24174d |
RGB Code | rgb(36, 23, 77) |
HSL Code | hsl(254, 54%, 20%) |
#24174d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(36, 23, 77); }
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(254, 54%, 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 #24174d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(36, 23, 77, 10%) | #24174d1a | |
rgb(36, 23, 77, 20%) | #24174d33 | |
rgb(36, 23, 77, 40%) | #24174d4C | |
rgb(36, 23, 77, 60%) | #24174d99 | |
rgb(36, 23, 77, 80%) | #24174dCC | |
rgb(36, 23, 77, 100%) | #24174dFF |
Saturated and desaturated colors of #24174d
HSL Code | Preview |
---|---|
hsl(254, 10%, 20%) | |
hsl(254, 20%, 20%) | |
hsl(254, 40%, 20%) | |
hsl(254, 60%, 20%) | |
hsl(254, 80%, 20%) | |
hsl(254, 100%, 20%) |
#24174d Color Usage In CSS
body { color: #24174d; } p { color: rgb(36, 23, 77); } header { border-bottom:1px solid #24174d; }