#2a1e26 Color
Color Codes | |
---|---|
Hex Code | #2a1e26 |
RGB Code | rgb(42, 30, 38) |
HSL Code | hsl(320, 17%, 14%) |
#2a1e26 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(42, 30, 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(320, 17%, 14%); }
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 #2a1e26
RGB Code | Hex Code | Preview |
---|---|---|
rgb(42, 30, 38, 10%) | #2a1e261a | |
rgb(42, 30, 38, 20%) | #2a1e2633 | |
rgb(42, 30, 38, 40%) | #2a1e264C | |
rgb(42, 30, 38, 60%) | #2a1e2699 | |
rgb(42, 30, 38, 80%) | #2a1e26CC | |
rgb(42, 30, 38, 100%) | #2a1e26FF |
Saturated and desaturated colors of #2a1e26
HSL Code | Preview |
---|---|
hsl(320, 10%, 14%) | |
hsl(320, 20%, 14%) | |
hsl(320, 40%, 14%) | |
hsl(320, 60%, 14%) | |
hsl(320, 80%, 14%) | |
hsl(320, 100%, 14%) |
#2a1e26 Color Usage In CSS
body { color: #2a1e26; } p { color: rgb(42, 30, 38); } header { border-bottom:1px solid #2a1e26; }