#040cc7 Color
Color Codes | |
---|---|
Hex Code | #040cc7 |
RGB Code | rgb(04, 12, 199) |
HSL Code | hsl(238, 96%, 40%) |
#040cc7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(04, 12, 199); }
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(238, 96%, 40%); }
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 #040cc7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(04, 12, 199, 10%) | #040cc71a | |
rgb(04, 12, 199, 20%) | #040cc733 | |
rgb(04, 12, 199, 40%) | #040cc74C | |
rgb(04, 12, 199, 60%) | #040cc799 | |
rgb(04, 12, 199, 80%) | #040cc7CC | |
rgb(04, 12, 199, 100%) | #040cc7FF |
Saturated and desaturated colors of #040cc7
HSL Code | Preview |
---|---|
hsl(238, 10%, 40%) | |
hsl(238, 20%, 40%) | |
hsl(238, 40%, 40%) | |
hsl(238, 60%, 40%) | |
hsl(238, 80%, 40%) | |
hsl(238, 100%, 40%) |
#040cc7 Color Usage In CSS
body { color: #040cc7; } p { color: rgb(04, 12, 199); } header { border-bottom:1px solid #040cc7; }