#0c3fba Color
Color Codes | |
---|---|
Hex Code | #0c3fba |
RGB Code | rgb(12, 63, 186) |
HSL Code | hsl(222, 88%, 39%) |
#0c3fba Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(12, 63, 186); }
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(222, 88%, 39%); }
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 #0c3fba
RGB Code | Hex Code | Preview |
---|---|---|
rgb(12, 63, 186, 10%) | #0c3fba1a | |
rgb(12, 63, 186, 20%) | #0c3fba33 | |
rgb(12, 63, 186, 40%) | #0c3fba4C | |
rgb(12, 63, 186, 60%) | #0c3fba99 | |
rgb(12, 63, 186, 80%) | #0c3fbaCC | |
rgb(12, 63, 186, 100%) | #0c3fbaFF |
Saturated and desaturated colors of #0c3fba
HSL Code | Preview |
---|---|
hsl(222, 10%, 39%) | |
hsl(222, 20%, 39%) | |
hsl(222, 40%, 39%) | |
hsl(222, 60%, 39%) | |
hsl(222, 80%, 39%) | |
hsl(222, 100%, 39%) |
#0c3fba Color Usage In CSS
body { color: #0c3fba; } p { color: rgb(12, 63, 186); } header { border-bottom:1px solid #0c3fba; }