#2a486e Color
Color Codes | |
---|---|
Hex Code | #2a486e |
RGB Code | rgb(42, 72, 110) |
HSL Code | hsl(214, 45%, 30%) |
#2a486e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(42, 72, 110); }
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(214, 45%, 30%); }
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 #2a486e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(42, 72, 110, 10%) | #2a486e1a | |
rgb(42, 72, 110, 20%) | #2a486e33 | |
rgb(42, 72, 110, 40%) | #2a486e4C | |
rgb(42, 72, 110, 60%) | #2a486e99 | |
rgb(42, 72, 110, 80%) | #2a486eCC | |
rgb(42, 72, 110, 100%) | #2a486eFF |
Saturated and desaturated colors of #2a486e
HSL Code | Preview |
---|---|
hsl(214, 10%, 30%) | |
hsl(214, 20%, 30%) | |
hsl(214, 40%, 30%) | |
hsl(214, 60%, 30%) | |
hsl(214, 80%, 30%) | |
hsl(214, 100%, 30%) |
#2a486e Color Usage In CSS
body { color: #2a486e; } p { color: rgb(42, 72, 110); } header { border-bottom:1px solid #2a486e; }