#2b0cd3 Color
Color Codes | |
---|---|
Hex Code | #2b0cd3 |
RGB Code | rgb(43, 12, 211) |
HSL Code | hsl(249, 89%, 44%) |
#2b0cd3 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 12, 211); }
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(249, 89%, 44%); }
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 #2b0cd3
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 12, 211, 10%) | #2b0cd31a | |
rgb(43, 12, 211, 20%) | #2b0cd333 | |
rgb(43, 12, 211, 40%) | #2b0cd34C | |
rgb(43, 12, 211, 60%) | #2b0cd399 | |
rgb(43, 12, 211, 80%) | #2b0cd3CC | |
rgb(43, 12, 211, 100%) | #2b0cd3FF |
Saturated and desaturated colors of #2b0cd3
HSL Code | Preview |
---|---|
hsl(249, 10%, 44%) | |
hsl(249, 20%, 44%) | |
hsl(249, 40%, 44%) | |
hsl(249, 60%, 44%) | |
hsl(249, 80%, 44%) | |
hsl(249, 100%, 44%) |
#2b0cd3 Color Usage In CSS
body { color: #2b0cd3; } p { color: rgb(43, 12, 211); } header { border-bottom:1px solid #2b0cd3; }