#212e3a Color
Color Codes | |
---|---|
Hex Code | #212e3a |
RGB Code | rgb(33, 46, 58) |
HSL Code | hsl(209, 27%, 18%) |
#212e3a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(33, 46, 58); }
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(209, 27%, 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 #212e3a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(33, 46, 58, 10%) | #212e3a1a | |
rgb(33, 46, 58, 20%) | #212e3a33 | |
rgb(33, 46, 58, 40%) | #212e3a4C | |
rgb(33, 46, 58, 60%) | #212e3a99 | |
rgb(33, 46, 58, 80%) | #212e3aCC | |
rgb(33, 46, 58, 100%) | #212e3aFF |
Saturated and desaturated colors of #212e3a
HSL Code | Preview |
---|---|
hsl(209, 10%, 18%) | |
hsl(209, 20%, 18%) | |
hsl(209, 40%, 18%) | |
hsl(209, 60%, 18%) | |
hsl(209, 80%, 18%) | |
hsl(209, 100%, 18%) |
#212e3a Color Usage In CSS
body { color: #212e3a; } p { color: rgb(33, 46, 58); } header { border-bottom:1px solid #212e3a; }