#2d5fa0 Color
Color Codes | |
---|---|
Hex Code | #2d5fa0 |
RGB Code | rgb(45, 95, 160) |
HSL Code | hsl(214, 56%, 40%) |
#2d5fa0 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 95, 160); }
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, 56%, 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 #2d5fa0
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 95, 160, 10%) | #2d5fa01a | |
rgb(45, 95, 160, 20%) | #2d5fa033 | |
rgb(45, 95, 160, 40%) | #2d5fa04C | |
rgb(45, 95, 160, 60%) | #2d5fa099 | |
rgb(45, 95, 160, 80%) | #2d5fa0CC | |
rgb(45, 95, 160, 100%) | #2d5fa0FF |
Saturated and desaturated colors of #2d5fa0
HSL Code | Preview |
---|---|
hsl(214, 10%, 40%) | |
hsl(214, 20%, 40%) | |
hsl(214, 40%, 40%) | |
hsl(214, 60%, 40%) | |
hsl(214, 80%, 40%) | |
hsl(214, 100%, 40%) |
#2d5fa0 Color Usage In CSS
body { color: #2d5fa0; } p { color: rgb(45, 95, 160); } header { border-bottom:1px solid #2d5fa0; }