#221fbf Color
Color Codes | |
---|---|
Hex Code | #221fbf |
RGB Code | rgb(34, 31, 191) |
HSL Code | hsl(241, 72%, 44%) |
#221fbf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(34, 31, 191); }
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(241, 72%, 44%); }
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 #221fbf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(34, 31, 191, 10%) | #221fbf1a | |
rgb(34, 31, 191, 20%) | #221fbf33 | |
rgb(34, 31, 191, 40%) | #221fbf4C | |
rgb(34, 31, 191, 60%) | #221fbf99 | |
rgb(34, 31, 191, 80%) | #221fbfCC | |
rgb(34, 31, 191, 100%) | #221fbfFF |
Saturated and desaturated colors of #221fbf
HSL Code | Preview |
---|---|
hsl(241, 10%, 44%) | |
hsl(241, 20%, 44%) | |
hsl(241, 40%, 44%) | |
hsl(241, 60%, 44%) | |
hsl(241, 80%, 44%) | |
hsl(241, 100%, 44%) |
#221fbf Color Usage In CSS
body { color: #221fbf; } p { color: rgb(34, 31, 191); } header { border-bottom:1px solid #221fbf; }