#331eae Color
Color Codes | |
---|---|
Hex Code | #331eae |
RGB Code | rgb(51, 30, 174) |
HSL Code | hsl(249, 71%, 40%) |
#331eae Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(51, 30, 174); }
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(249, 71%, 40%); }
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 #331eae
RGB Code | Hex Code | Preview |
---|---|---|
rgb(51, 30, 174, 10%) | #331eae1a | |
rgb(51, 30, 174, 20%) | #331eae33 | |
rgb(51, 30, 174, 40%) | #331eae4C | |
rgb(51, 30, 174, 60%) | #331eae99 | |
rgb(51, 30, 174, 80%) | #331eaeCC | |
rgb(51, 30, 174, 100%) | #331eaeFF |
Saturated and desaturated colors of #331eae
HSL Code | Preview |
---|---|
hsl(249, 10%, 40%) | |
hsl(249, 20%, 40%) | |
hsl(249, 40%, 40%) | |
hsl(249, 60%, 40%) | |
hsl(249, 80%, 40%) | |
hsl(249, 100%, 40%) |
#331eae Color Usage In CSS
body { color: #331eae; } p { color: rgb(51, 30, 174); } header { border-bottom:1px solid #331eae; }