#2b5439 Color
Color Codes | |
---|---|
Hex Code | #2b5439 |
RGB Code | rgb(43, 84, 57) |
HSL Code | hsl(140, 32%, 25%) |
#2b5439 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 84, 57); }
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(140, 32%, 25%); }
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 #2b5439
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 84, 57, 10%) | #2b54391a | |
rgb(43, 84, 57, 20%) | #2b543933 | |
rgb(43, 84, 57, 40%) | #2b54394C | |
rgb(43, 84, 57, 60%) | #2b543999 | |
rgb(43, 84, 57, 80%) | #2b5439CC | |
rgb(43, 84, 57, 100%) | #2b5439FF |
Saturated and desaturated colors of #2b5439
HSL Code | Preview |
---|---|
hsl(140, 10%, 25%) | |
hsl(140, 20%, 25%) | |
hsl(140, 40%, 25%) | |
hsl(140, 60%, 25%) | |
hsl(140, 80%, 25%) | |
hsl(140, 100%, 25%) |
#2b5439 Color Usage In CSS
body { color: #2b5439; } p { color: rgb(43, 84, 57); } header { border-bottom:1px solid #2b5439; }