#2b4f0e Color
Color Codes | |
---|---|
Hex Code | #2b4f0e |
RGB Code | rgb(43, 79, 14) |
HSL Code | hsl(93, 70%, 18%) |
#2b4f0e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 79, 14); }
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(93, 70%, 18%); }
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 #2b4f0e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 79, 14, 10%) | #2b4f0e1a | |
rgb(43, 79, 14, 20%) | #2b4f0e33 | |
rgb(43, 79, 14, 40%) | #2b4f0e4C | |
rgb(43, 79, 14, 60%) | #2b4f0e99 | |
rgb(43, 79, 14, 80%) | #2b4f0eCC | |
rgb(43, 79, 14, 100%) | #2b4f0eFF |
Saturated and desaturated colors of #2b4f0e
HSL Code | Preview |
---|---|
hsl(93, 10%, 18%) | |
hsl(93, 20%, 18%) | |
hsl(93, 40%, 18%) | |
hsl(93, 60%, 18%) | |
hsl(93, 80%, 18%) | |
hsl(93, 100%, 18%) |
#2b4f0e Color Usage In CSS
body { color: #2b4f0e; } p { color: rgb(43, 79, 14); } header { border-bottom:1px solid #2b4f0e; }