#2c8ec5 Color
Color Codes | |
---|---|
Hex Code | #2c8ec5 |
RGB Code | rgb(44, 142, 197) |
HSL Code | hsl(202, 63%, 47%) |
#2c8ec5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(44, 142, 197); }
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(202, 63%, 47%); }
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 #2c8ec5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(44, 142, 197, 10%) | #2c8ec51a | |
rgb(44, 142, 197, 20%) | #2c8ec533 | |
rgb(44, 142, 197, 40%) | #2c8ec54C | |
rgb(44, 142, 197, 60%) | #2c8ec599 | |
rgb(44, 142, 197, 80%) | #2c8ec5CC | |
rgb(44, 142, 197, 100%) | #2c8ec5FF |
Saturated and desaturated colors of #2c8ec5
HSL Code | Preview |
---|---|
hsl(202, 10%, 47%) | |
hsl(202, 20%, 47%) | |
hsl(202, 40%, 47%) | |
hsl(202, 60%, 47%) | |
hsl(202, 80%, 47%) | |
hsl(202, 100%, 47%) |
#2c8ec5 Color Usage In CSS
body { color: #2c8ec5; } p { color: rgb(44, 142, 197); } header { border-bottom:1px solid #2c8ec5; }