#2b015b Color
Color Codes | |
---|---|
Hex Code | #2b015b |
RGB Code | rgb(43, 01, 91) |
HSL Code | hsl(268, 98%, 18%) |
#2b015b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 01, 91); }
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(268, 98%, 18%); }
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 #2b015b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 01, 91, 10%) | #2b015b1a | |
rgb(43, 01, 91, 20%) | #2b015b33 | |
rgb(43, 01, 91, 40%) | #2b015b4C | |
rgb(43, 01, 91, 60%) | #2b015b99 | |
rgb(43, 01, 91, 80%) | #2b015bCC | |
rgb(43, 01, 91, 100%) | #2b015bFF |
Saturated and desaturated colors of #2b015b
HSL Code | Preview |
---|---|
hsl(268, 10%, 18%) | |
hsl(268, 20%, 18%) | |
hsl(268, 40%, 18%) | |
hsl(268, 60%, 18%) | |
hsl(268, 80%, 18%) | |
hsl(268, 100%, 18%) |
#2b015b Color Usage In CSS
body { color: #2b015b; } p { color: rgb(43, 01, 91); } header { border-bottom:1px solid #2b015b; }