#22284c Color
Color Codes | |
---|---|
Hex Code | #22284c |
RGB Code | rgb(34, 40, 76) |
HSL Code | hsl(231, 38%, 22%) |
#22284c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(34, 40, 76); }
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(231, 38%, 22%); }
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 #22284c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(34, 40, 76, 10%) | #22284c1a | |
rgb(34, 40, 76, 20%) | #22284c33 | |
rgb(34, 40, 76, 40%) | #22284c4C | |
rgb(34, 40, 76, 60%) | #22284c99 | |
rgb(34, 40, 76, 80%) | #22284cCC | |
rgb(34, 40, 76, 100%) | #22284cFF |
Saturated and desaturated colors of #22284c
HSL Code | Preview |
---|---|
hsl(231, 10%, 22%) | |
hsl(231, 20%, 22%) | |
hsl(231, 40%, 22%) | |
hsl(231, 60%, 22%) | |
hsl(231, 80%, 22%) | |
hsl(231, 100%, 22%) |
#22284c Color Usage In CSS
body { color: #22284c; } p { color: rgb(34, 40, 76); } header { border-bottom:1px solid #22284c; }