#3e55aa Color
Color Codes | |
---|---|
Hex Code | #3e55aa |
RGB Code | rgb(62, 85, 170) |
HSL Code | hsl(227, 47%, 45%) |
#3e55aa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(62, 85, 170); }
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(227, 47%, 45%); }
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 #3e55aa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(62, 85, 170, 10%) | #3e55aa1a | |
rgb(62, 85, 170, 20%) | #3e55aa33 | |
rgb(62, 85, 170, 40%) | #3e55aa4C | |
rgb(62, 85, 170, 60%) | #3e55aa99 | |
rgb(62, 85, 170, 80%) | #3e55aaCC | |
rgb(62, 85, 170, 100%) | #3e55aaFF |
Saturated and desaturated colors of #3e55aa
HSL Code | Preview |
---|---|
hsl(227, 10%, 45%) | |
hsl(227, 20%, 45%) | |
hsl(227, 40%, 45%) | |
hsl(227, 60%, 45%) | |
hsl(227, 80%, 45%) | |
hsl(227, 100%, 45%) |
#3e55aa Color Usage In CSS
body { color: #3e55aa; } p { color: rgb(62, 85, 170); } header { border-bottom:1px solid #3e55aa; }