#315c52 Color
Color Codes | |
---|---|
Hex Code | #315c52 |
RGB Code | rgb(49, 92, 82) |
HSL Code | hsl(166, 30%, 28%) |
#315c52 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 92, 82); }
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(166, 30%, 28%); }
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 #315c52
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 92, 82, 10%) | #315c521a | |
rgb(49, 92, 82, 20%) | #315c5233 | |
rgb(49, 92, 82, 40%) | #315c524C | |
rgb(49, 92, 82, 60%) | #315c5299 | |
rgb(49, 92, 82, 80%) | #315c52CC | |
rgb(49, 92, 82, 100%) | #315c52FF |
Saturated and desaturated colors of #315c52
HSL Code | Preview |
---|---|
hsl(166, 10%, 28%) | |
hsl(166, 20%, 28%) | |
hsl(166, 40%, 28%) | |
hsl(166, 60%, 28%) | |
hsl(166, 80%, 28%) | |
hsl(166, 100%, 28%) |
#315c52 Color Usage In CSS
body { color: #315c52; } p { color: rgb(49, 92, 82); } header { border-bottom:1px solid #315c52; }