#1c52e7 Color
Color Codes | |
---|---|
Hex Code | #1c52e7 |
RGB Code | rgb(28, 82, 231) |
HSL Code | hsl(224, 81%, 51%) |
#1c52e7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(28, 82, 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(224, 81%, 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 #1c52e7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(28, 82, 231, 10%) | #1c52e71a | |
rgb(28, 82, 231, 20%) | #1c52e733 | |
rgb(28, 82, 231, 40%) | #1c52e74C | |
rgb(28, 82, 231, 60%) | #1c52e799 | |
rgb(28, 82, 231, 80%) | #1c52e7CC | |
rgb(28, 82, 231, 100%) | #1c52e7FF |
Saturated and desaturated colors of #1c52e7
HSL Code | Preview |
---|---|
hsl(224, 10%, 51%) | |
hsl(224, 20%, 51%) | |
hsl(224, 40%, 51%) | |
hsl(224, 60%, 51%) | |
hsl(224, 80%, 51%) | |
hsl(224, 100%, 51%) |
#1c52e7 Color Usage In CSS
body { color: #1c52e7; } p { color: rgb(28, 82, 231); } header { border-bottom:1px solid #1c52e7; }