#0c72ef Color
Color Codes | |
---|---|
Hex Code | #0c72ef |
RGB Code | rgb(12, 114, 239) |
HSL Code | hsl(213, 90%, 49%) |
#0c72ef Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 114, 239); }
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(213, 90%, 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 #0c72ef
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 114, 239, 10%) | #0c72ef1a | |
rgb(12, 114, 239, 20%) | #0c72ef33 | |
rgb(12, 114, 239, 40%) | #0c72ef4C | |
rgb(12, 114, 239, 60%) | #0c72ef99 | |
rgb(12, 114, 239, 80%) | #0c72efCC | |
rgb(12, 114, 239, 100%) | #0c72efFF |
Saturated and desaturated colors of #0c72ef
HSL Code | Preview |
---|---|
hsl(213, 10%, 49%) | |
hsl(213, 20%, 49%) | |
hsl(213, 40%, 49%) | |
hsl(213, 60%, 49%) | |
hsl(213, 80%, 49%) | |
hsl(213, 100%, 49%) |
#0c72ef Color Usage In CSS
body { color: #0c72ef; } p { color: rgb(12, 114, 239); } header { border-bottom:1px solid #0c72ef; }