#22142a Color
Color Codes | |
---|---|
Hex Code | #22142a |
RGB Code | rgb(34, 20, 42) |
HSL Code | hsl(278, 35%, 12%) |
#22142a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(34, 20, 42); }
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(278, 35%, 12%); }
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 #22142a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(34, 20, 42, 10%) | #22142a1a | |
rgb(34, 20, 42, 20%) | #22142a33 | |
rgb(34, 20, 42, 40%) | #22142a4C | |
rgb(34, 20, 42, 60%) | #22142a99 | |
rgb(34, 20, 42, 80%) | #22142aCC | |
rgb(34, 20, 42, 100%) | #22142aFF |
Saturated and desaturated colors of #22142a
HSL Code | Preview |
---|---|
hsl(278, 10%, 12%) | |
hsl(278, 20%, 12%) | |
hsl(278, 40%, 12%) | |
hsl(278, 60%, 12%) | |
hsl(278, 80%, 12%) | |
hsl(278, 100%, 12%) |
#22142a Color Usage In CSS
body { color: #22142a; } p { color: rgb(34, 20, 42); } header { border-bottom:1px solid #22142a; }