#2f9bab Color
Color Codes | |
---|---|
Hex Code | #2f9bab |
RGB Code | rgb(47, 155, 171) |
HSL Code | hsl(188, 57%, 43%) |
#2f9bab Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(47, 155, 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(188, 57%, 43%); }
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 #2f9bab
RGB Code | Hex Code | Preview |
---|---|---|
rgb(47, 155, 171, 10%) | #2f9bab1a | |
rgb(47, 155, 171, 20%) | #2f9bab33 | |
rgb(47, 155, 171, 40%) | #2f9bab4C | |
rgb(47, 155, 171, 60%) | #2f9bab99 | |
rgb(47, 155, 171, 80%) | #2f9babCC | |
rgb(47, 155, 171, 100%) | #2f9babFF |
Saturated and desaturated colors of #2f9bab
HSL Code | Preview |
---|---|
hsl(188, 10%, 43%) | |
hsl(188, 20%, 43%) | |
hsl(188, 40%, 43%) | |
hsl(188, 60%, 43%) | |
hsl(188, 80%, 43%) | |
hsl(188, 100%, 43%) |
#2f9bab Color Usage In CSS
body { color: #2f9bab; } p { color: rgb(47, 155, 171); } header { border-bottom:1px solid #2f9bab; }