#0c1822 Color
Color Codes | |
---|---|
Hex Code | #0c1822 |
RGB Code | rgb(12, 24, 34) |
HSL Code | hsl(207, 48%, 9%) |
#0c1822 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 24, 34); }
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(207, 48%, 9%); }
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 #0c1822
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 24, 34, 10%) | #0c18221a | |
rgb(12, 24, 34, 20%) | #0c182233 | |
rgb(12, 24, 34, 40%) | #0c18224C | |
rgb(12, 24, 34, 60%) | #0c182299 | |
rgb(12, 24, 34, 80%) | #0c1822CC | |
rgb(12, 24, 34, 100%) | #0c1822FF |
Saturated and desaturated colors of #0c1822
HSL Code | Preview |
---|---|
hsl(207, 10%, 9%) | |
hsl(207, 20%, 9%) | |
hsl(207, 40%, 9%) | |
hsl(207, 60%, 9%) | |
hsl(207, 80%, 9%) | |
hsl(207, 100%, 9%) |
#0c1822 Color Usage In CSS
body { color: #0c1822; } p { color: rgb(12, 24, 34); } header { border-bottom:1px solid #0c1822; }