#1c6fab Color
Color Codes | |
---|---|
Hex Code | #1c6fab |
RGB Code | rgb(28, 111, 171) |
HSL Code | hsl(205, 72%, 39%) |
#1c6fab Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(28, 111, 171); }
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(205, 72%, 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 #1c6fab
RGB Code | Hex Code | Preview |
---|---|---|
rgb(28, 111, 171, 10%) | #1c6fab1a | |
rgb(28, 111, 171, 20%) | #1c6fab33 | |
rgb(28, 111, 171, 40%) | #1c6fab4C | |
rgb(28, 111, 171, 60%) | #1c6fab99 | |
rgb(28, 111, 171, 80%) | #1c6fabCC | |
rgb(28, 111, 171, 100%) | #1c6fabFF |
Saturated and desaturated colors of #1c6fab
HSL Code | Preview |
---|---|
hsl(205, 10%, 39%) | |
hsl(205, 20%, 39%) | |
hsl(205, 40%, 39%) | |
hsl(205, 60%, 39%) | |
hsl(205, 80%, 39%) | |
hsl(205, 100%, 39%) |
#1c6fab Color Usage In CSS
body { color: #1c6fab; } p { color: rgb(28, 111, 171); } header { border-bottom:1px solid #1c6fab; }