#2d71d5 Color
Color Codes | |
---|---|
Hex Code | #2d71d5 |
RGB Code | rgb(45, 113, 213) |
HSL Code | hsl(216, 67%, 51%) |
#2d71d5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 113, 213); }
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(216, 67%, 51%); }
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 #2d71d5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 113, 213, 10%) | #2d71d51a | |
rgb(45, 113, 213, 20%) | #2d71d533 | |
rgb(45, 113, 213, 40%) | #2d71d54C | |
rgb(45, 113, 213, 60%) | #2d71d599 | |
rgb(45, 113, 213, 80%) | #2d71d5CC | |
rgb(45, 113, 213, 100%) | #2d71d5FF |
Saturated and desaturated colors of #2d71d5
HSL Code | Preview |
---|---|
hsl(216, 10%, 51%) | |
hsl(216, 20%, 51%) | |
hsl(216, 40%, 51%) | |
hsl(216, 60%, 51%) | |
hsl(216, 80%, 51%) | |
hsl(216, 100%, 51%) |
#2d71d5 Color Usage In CSS
body { color: #2d71d5; } p { color: rgb(45, 113, 213); } header { border-bottom:1px solid #2d71d5; }