#0c1f64 Color
Color Codes | |
---|---|
Hex Code | #0c1f64 |
RGB Code | rgb(12, 31, 100) |
HSL Code | hsl(227, 79%, 22%) |
#0c1f64 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 31, 100); }
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(227, 79%, 22%); }
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 #0c1f64
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 31, 100, 10%) | #0c1f641a | |
rgb(12, 31, 100, 20%) | #0c1f6433 | |
rgb(12, 31, 100, 40%) | #0c1f644C | |
rgb(12, 31, 100, 60%) | #0c1f6499 | |
rgb(12, 31, 100, 80%) | #0c1f64CC | |
rgb(12, 31, 100, 100%) | #0c1f64FF |
Saturated and desaturated colors of #0c1f64
HSL Code | Preview |
---|---|
hsl(227, 10%, 22%) | |
hsl(227, 20%, 22%) | |
hsl(227, 40%, 22%) | |
hsl(227, 60%, 22%) | |
hsl(227, 80%, 22%) | |
hsl(227, 100%, 22%) |
#0c1f64 Color Usage In CSS
body { color: #0c1f64; } p { color: rgb(12, 31, 100); } header { border-bottom:1px solid #0c1f64; }