#2812e7 Color
Color Codes | |
---|---|
Hex Code | #2812e7 |
RGB Code | rgb(40, 18, 231) |
HSL Code | hsl(246, 86%, 49%) |
#2812e7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(40, 18, 231); }
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(246, 86%, 49%); }
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 #2812e7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(40, 18, 231, 10%) | #2812e71a | |
rgb(40, 18, 231, 20%) | #2812e733 | |
rgb(40, 18, 231, 40%) | #2812e74C | |
rgb(40, 18, 231, 60%) | #2812e799 | |
rgb(40, 18, 231, 80%) | #2812e7CC | |
rgb(40, 18, 231, 100%) | #2812e7FF |
Saturated and desaturated colors of #2812e7
HSL Code | Preview |
---|---|
hsl(246, 10%, 49%) | |
hsl(246, 20%, 49%) | |
hsl(246, 40%, 49%) | |
hsl(246, 60%, 49%) | |
hsl(246, 80%, 49%) | |
hsl(246, 100%, 49%) |
#2812e7 Color Usage In CSS
body { color: #2812e7; } p { color: rgb(40, 18, 231); } header { border-bottom:1px solid #2812e7; }