#545a8e Color
Color Codes | |
---|---|
Hex Code | #545a8e |
RGB Code | rgb(84, 90, 142) |
HSL Code | hsl(234, 26%, 44%) |
#545a8e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(84, 90, 142); }
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(234, 26%, 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 #545a8e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(84, 90, 142, 10%) | #545a8e1a | |
rgb(84, 90, 142, 20%) | #545a8e33 | |
rgb(84, 90, 142, 40%) | #545a8e4C | |
rgb(84, 90, 142, 60%) | #545a8e99 | |
rgb(84, 90, 142, 80%) | #545a8eCC | |
rgb(84, 90, 142, 100%) | #545a8eFF |
Saturated and desaturated colors of #545a8e
HSL Code | Preview |
---|---|
hsl(234, 10%, 44%) | |
hsl(234, 20%, 44%) | |
hsl(234, 40%, 44%) | |
hsl(234, 60%, 44%) | |
hsl(234, 80%, 44%) | |
hsl(234, 100%, 44%) |
#545a8e Color Usage In CSS
body { color: #545a8e; } p { color: rgb(84, 90, 142); } header { border-bottom:1px solid #545a8e; }