#2f0426 Color
Color Codes | |
---|---|
Hex Code | #2f0426 |
RGB Code | rgb(47, 04, 38) |
HSL Code | hsl(313, 84%, 10%) |
#2f0426 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(47, 04, 38); }
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(313, 84%, 10%); }
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 #2f0426
RGB Code | Hex Code | Preview |
---|---|---|
rgb(47, 04, 38, 10%) | #2f04261a | |
rgb(47, 04, 38, 20%) | #2f042633 | |
rgb(47, 04, 38, 40%) | #2f04264C | |
rgb(47, 04, 38, 60%) | #2f042699 | |
rgb(47, 04, 38, 80%) | #2f0426CC | |
rgb(47, 04, 38, 100%) | #2f0426FF |
Saturated and desaturated colors of #2f0426
HSL Code | Preview |
---|---|
hsl(313, 10%, 10%) | |
hsl(313, 20%, 10%) | |
hsl(313, 40%, 10%) | |
hsl(313, 60%, 10%) | |
hsl(313, 80%, 10%) | |
hsl(313, 100%, 10%) |
#2f0426 Color Usage In CSS
body { color: #2f0426; } p { color: rgb(47, 04, 38); } header { border-bottom:1px solid #2f0426; }