#0c2233 Color
Color Codes | |
---|---|
Hex Code | #0c2233 |
RGB Code | rgb(12, 34, 51) |
HSL Code | hsl(206, 62%, 12%) |
#0c2233 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 34, 51); }
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(206, 62%, 12%); }
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 #0c2233
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 34, 51, 10%) | #0c22331a | |
rgb(12, 34, 51, 20%) | #0c223333 | |
rgb(12, 34, 51, 40%) | #0c22334C | |
rgb(12, 34, 51, 60%) | #0c223399 | |
rgb(12, 34, 51, 80%) | #0c2233CC | |
rgb(12, 34, 51, 100%) | #0c2233FF |
Saturated and desaturated colors of #0c2233
HSL Code | Preview |
---|---|
hsl(206, 10%, 12%) | |
hsl(206, 20%, 12%) | |
hsl(206, 40%, 12%) | |
hsl(206, 60%, 12%) | |
hsl(206, 80%, 12%) | |
hsl(206, 100%, 12%) |
#0c2233 Color Usage In CSS
body { color: #0c2233; } p { color: rgb(12, 34, 51); } header { border-bottom:1px solid #0c2233; }