#122ec6 Color
Color Codes | |
---|---|
Hex Code | #122ec6 |
RGB Code | rgb(18, 46, 198) |
HSL Code | hsl(231, 83%, 42%) |
#122ec6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(18, 46, 198); }
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(231, 83%, 42%); }
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 #122ec6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(18, 46, 198, 10%) | #122ec61a | |
rgb(18, 46, 198, 20%) | #122ec633 | |
rgb(18, 46, 198, 40%) | #122ec64C | |
rgb(18, 46, 198, 60%) | #122ec699 | |
rgb(18, 46, 198, 80%) | #122ec6CC | |
rgb(18, 46, 198, 100%) | #122ec6FF |
Saturated and desaturated colors of #122ec6
HSL Code | Preview |
---|---|
hsl(231, 10%, 42%) | |
hsl(231, 20%, 42%) | |
hsl(231, 40%, 42%) | |
hsl(231, 60%, 42%) | |
hsl(231, 80%, 42%) | |
hsl(231, 100%, 42%) |
#122ec6 Color Usage In CSS
body { color: #122ec6; } p { color: rgb(18, 46, 198); } header { border-bottom:1px solid #122ec6; }