#2a0f6e Color
Color Codes | |
---|---|
Hex Code | #2a0f6e |
RGB Code | rgb(42, 15, 110) |
HSL Code | hsl(257, 76%, 25%) |
#2a0f6e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(42, 15, 110); }
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(257, 76%, 25%); }
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 #2a0f6e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(42, 15, 110, 10%) | #2a0f6e1a | |
rgb(42, 15, 110, 20%) | #2a0f6e33 | |
rgb(42, 15, 110, 40%) | #2a0f6e4C | |
rgb(42, 15, 110, 60%) | #2a0f6e99 | |
rgb(42, 15, 110, 80%) | #2a0f6eCC | |
rgb(42, 15, 110, 100%) | #2a0f6eFF |
Saturated and desaturated colors of #2a0f6e
HSL Code | Preview |
---|---|
hsl(257, 10%, 25%) | |
hsl(257, 20%, 25%) | |
hsl(257, 40%, 25%) | |
hsl(257, 60%, 25%) | |
hsl(257, 80%, 25%) | |
hsl(257, 100%, 25%) |
#2a0f6e Color Usage In CSS
body { color: #2a0f6e; } p { color: rgb(42, 15, 110); } header { border-bottom:1px solid #2a0f6e; }