#2d5362 Color
Color Codes | |
---|---|
Hex Code | #2d5362 |
RGB Code | rgb(45, 83, 98) |
HSL Code | hsl(197, 37%, 28%) |
#2d5362 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 83, 98); }
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(197, 37%, 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 #2d5362
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 83, 98, 10%) | #2d53621a | |
rgb(45, 83, 98, 20%) | #2d536233 | |
rgb(45, 83, 98, 40%) | #2d53624C | |
rgb(45, 83, 98, 60%) | #2d536299 | |
rgb(45, 83, 98, 80%) | #2d5362CC | |
rgb(45, 83, 98, 100%) | #2d5362FF |
Saturated and desaturated colors of #2d5362
HSL Code | Preview |
---|---|
hsl(197, 10%, 28%) | |
hsl(197, 20%, 28%) | |
hsl(197, 40%, 28%) | |
hsl(197, 60%, 28%) | |
hsl(197, 80%, 28%) | |
hsl(197, 100%, 28%) |
#2d5362 Color Usage In CSS
body { color: #2d5362; } p { color: rgb(45, 83, 98); } header { border-bottom:1px solid #2d5362; }