#2b98ba Color
Color Codes | |
---|---|
Hex Code | #2b98ba |
RGB Code | rgb(43, 152, 186) |
HSL Code | hsl(194, 62%, 45%) |
#2b98ba Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 152, 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(194, 62%, 45%); }
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 #2b98ba
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 152, 186, 10%) | #2b98ba1a | |
rgb(43, 152, 186, 20%) | #2b98ba33 | |
rgb(43, 152, 186, 40%) | #2b98ba4C | |
rgb(43, 152, 186, 60%) | #2b98ba99 | |
rgb(43, 152, 186, 80%) | #2b98baCC | |
rgb(43, 152, 186, 100%) | #2b98baFF |
Saturated and desaturated colors of #2b98ba
HSL Code | Preview |
---|---|
hsl(194, 10%, 45%) | |
hsl(194, 20%, 45%) | |
hsl(194, 40%, 45%) | |
hsl(194, 60%, 45%) | |
hsl(194, 80%, 45%) | |
hsl(194, 100%, 45%) |
#2b98ba Color Usage In CSS
body { color: #2b98ba; } p { color: rgb(43, 152, 186); } header { border-bottom:1px solid #2b98ba; }