#0c2188 Color
Color Codes | |
---|---|
Hex Code | #0c2188 |
RGB Code | rgb(12, 33, 136) |
HSL Code | hsl(230, 84%, 29%) |
#0c2188 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 33, 136); }
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(230, 84%, 29%); }
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 #0c2188
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 33, 136, 10%) | #0c21881a | |
rgb(12, 33, 136, 20%) | #0c218833 | |
rgb(12, 33, 136, 40%) | #0c21884C | |
rgb(12, 33, 136, 60%) | #0c218899 | |
rgb(12, 33, 136, 80%) | #0c2188CC | |
rgb(12, 33, 136, 100%) | #0c2188FF |
Saturated and desaturated colors of #0c2188
HSL Code | Preview |
---|---|
hsl(230, 10%, 29%) | |
hsl(230, 20%, 29%) | |
hsl(230, 40%, 29%) | |
hsl(230, 60%, 29%) | |
hsl(230, 80%, 29%) | |
hsl(230, 100%, 29%) |
#0c2188 Color Usage In CSS
body { color: #0c2188; } p { color: rgb(12, 33, 136); } header { border-bottom:1px solid #0c2188; }