#222497 Color
Color Codes | |
---|---|
Hex Code | #222497 |
RGB Code | rgb(34, 36, 151) |
HSL Code | hsl(239, 63%, 36%) |
#222497 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(34, 36, 151); }
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(239, 63%, 36%); }
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 #222497
RGB Code | Hex Code | Preview |
---|---|---|
rgb(34, 36, 151, 10%) | #2224971a | |
rgb(34, 36, 151, 20%) | #22249733 | |
rgb(34, 36, 151, 40%) | #2224974C | |
rgb(34, 36, 151, 60%) | #22249799 | |
rgb(34, 36, 151, 80%) | #222497CC | |
rgb(34, 36, 151, 100%) | #222497FF |
Saturated and desaturated colors of #222497
HSL Code | Preview |
---|---|
hsl(239, 10%, 36%) | |
hsl(239, 20%, 36%) | |
hsl(239, 40%, 36%) | |
hsl(239, 60%, 36%) | |
hsl(239, 80%, 36%) | |
hsl(239, 100%, 36%) |
#222497 Color Usage In CSS
body { color: #222497; } p { color: rgb(34, 36, 151); } header { border-bottom:1px solid #222497; }