#0a041f Color
Color Codes | |
---|---|
Hex Code | #0a041f |
RGB Code | rgb(10, 04, 31) |
HSL Code | hsl(253, 77%, 7%) |
#0a041f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(10, 04, 31); }
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(253, 77%, 7%); }
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 #0a041f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(10, 04, 31, 10%) | #0a041f1a | |
rgb(10, 04, 31, 20%) | #0a041f33 | |
rgb(10, 04, 31, 40%) | #0a041f4C | |
rgb(10, 04, 31, 60%) | #0a041f99 | |
rgb(10, 04, 31, 80%) | #0a041fCC | |
rgb(10, 04, 31, 100%) | #0a041fFF |
Saturated and desaturated colors of #0a041f
HSL Code | Preview |
---|---|
hsl(253, 10%, 7%) | |
hsl(253, 20%, 7%) | |
hsl(253, 40%, 7%) | |
hsl(253, 60%, 7%) | |
hsl(253, 80%, 7%) | |
hsl(253, 100%, 7%) |
#0a041f Color Usage In CSS
body { color: #0a041f; } p { color: rgb(10, 04, 31); } header { border-bottom:1px solid #0a041f; }