#291f4d Color
Color Codes | |
---|---|
Hex Code | #291f4d |
RGB Code | rgb(41, 31, 77) |
HSL Code | hsl(253, 43%, 21%) |
#291f4d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(41, 31, 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(253, 43%, 21%); }
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 #291f4d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(41, 31, 77, 10%) | #291f4d1a | |
rgb(41, 31, 77, 20%) | #291f4d33 | |
rgb(41, 31, 77, 40%) | #291f4d4C | |
rgb(41, 31, 77, 60%) | #291f4d99 | |
rgb(41, 31, 77, 80%) | #291f4dCC | |
rgb(41, 31, 77, 100%) | #291f4dFF |
Saturated and desaturated colors of #291f4d
HSL Code | Preview |
---|---|
hsl(253, 10%, 21%) | |
hsl(253, 20%, 21%) | |
hsl(253, 40%, 21%) | |
hsl(253, 60%, 21%) | |
hsl(253, 80%, 21%) | |
hsl(253, 100%, 21%) |
#291f4d Color Usage In CSS
body { color: #291f4d; } p { color: rgb(41, 31, 77); } header { border-bottom:1px solid #291f4d; }