#2a0ccc Color
Color Codes | |
---|---|
Hex Code | #2a0ccc |
RGB Code | rgb(42, 12, 204) |
HSL Code | hsl(249, 89%, 42%) |
#2a0ccc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(42, 12, 204); }
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(249, 89%, 42%); }
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 #2a0ccc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(42, 12, 204, 10%) | #2a0ccc1a | |
rgb(42, 12, 204, 20%) | #2a0ccc33 | |
rgb(42, 12, 204, 40%) | #2a0ccc4C | |
rgb(42, 12, 204, 60%) | #2a0ccc99 | |
rgb(42, 12, 204, 80%) | #2a0cccCC | |
rgb(42, 12, 204, 100%) | #2a0cccFF |
Saturated and desaturated colors of #2a0ccc
HSL Code | Preview |
---|---|
hsl(249, 10%, 42%) | |
hsl(249, 20%, 42%) | |
hsl(249, 40%, 42%) | |
hsl(249, 60%, 42%) | |
hsl(249, 80%, 42%) | |
hsl(249, 100%, 42%) |
#2a0ccc Color Usage In CSS
body { color: #2a0ccc; } p { color: rgb(42, 12, 204); } header { border-bottom:1px solid #2a0ccc; }