#3a4b46 Color
Color Codes | |
---|---|
Hex Code | #3a4b46 |
RGB Code | rgb(58, 75, 70) |
HSL Code | hsl(162, 13%, 26%) |
#3a4b46 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(58, 75, 70); }
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(162, 13%, 26%); }
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 #3a4b46
RGB Code | Hex Code | Preview |
---|---|---|
rgb(58, 75, 70, 10%) | #3a4b461a | |
rgb(58, 75, 70, 20%) | #3a4b4633 | |
rgb(58, 75, 70, 40%) | #3a4b464C | |
rgb(58, 75, 70, 60%) | #3a4b4699 | |
rgb(58, 75, 70, 80%) | #3a4b46CC | |
rgb(58, 75, 70, 100%) | #3a4b46FF |
Saturated and desaturated colors of #3a4b46
HSL Code | Preview |
---|---|
hsl(162, 10%, 26%) | |
hsl(162, 20%, 26%) | |
hsl(162, 40%, 26%) | |
hsl(162, 60%, 26%) | |
hsl(162, 80%, 26%) | |
hsl(162, 100%, 26%) |
#3a4b46 Color Usage In CSS
body { color: #3a4b46; } p { color: rgb(58, 75, 70); } header { border-bottom:1px solid #3a4b46; }