#311cde Color
Color Codes | |
---|---|
Hex Code | #311cde |
RGB Code | rgb(49, 28, 222) |
HSL Code | hsl(246, 78%, 49%) |
#311cde Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 28, 222); }
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(246, 78%, 49%); }
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 #311cde
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 28, 222, 10%) | #311cde1a | |
rgb(49, 28, 222, 20%) | #311cde33 | |
rgb(49, 28, 222, 40%) | #311cde4C | |
rgb(49, 28, 222, 60%) | #311cde99 | |
rgb(49, 28, 222, 80%) | #311cdeCC | |
rgb(49, 28, 222, 100%) | #311cdeFF |
Saturated and desaturated colors of #311cde
HSL Code | Preview |
---|---|
hsl(246, 10%, 49%) | |
hsl(246, 20%, 49%) | |
hsl(246, 40%, 49%) | |
hsl(246, 60%, 49%) | |
hsl(246, 80%, 49%) | |
hsl(246, 100%, 49%) |
#311cde Color Usage In CSS
body { color: #311cde; } p { color: rgb(49, 28, 222); } header { border-bottom:1px solid #311cde; }