#337aaa Color
Color Codes | |
---|---|
Hex Code | #337aaa |
RGB Code | rgb(51, 122, 170) |
HSL Code | hsl(204, 54%, 43%) |
#337aaa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(51, 122, 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(204, 54%, 43%); }
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 #337aaa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(51, 122, 170, 10%) | #337aaa1a | |
rgb(51, 122, 170, 20%) | #337aaa33 | |
rgb(51, 122, 170, 40%) | #337aaa4C | |
rgb(51, 122, 170, 60%) | #337aaa99 | |
rgb(51, 122, 170, 80%) | #337aaaCC | |
rgb(51, 122, 170, 100%) | #337aaaFF |
Saturated and desaturated colors of #337aaa
HSL Code | Preview |
---|---|
hsl(204, 10%, 43%) | |
hsl(204, 20%, 43%) | |
hsl(204, 40%, 43%) | |
hsl(204, 60%, 43%) | |
hsl(204, 80%, 43%) | |
hsl(204, 100%, 43%) |
#337aaa Color Usage In CSS
body { color: #337aaa; } p { color: rgb(51, 122, 170); } header { border-bottom:1px solid #337aaa; }