#3a1a54 Color
Color Codes | |
---|---|
Hex Code | #3a1a54 |
RGB Code | rgb(58, 26, 84) |
HSL Code | hsl(273, 53%, 22%) |
#3a1a54 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(58, 26, 84); }
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(273, 53%, 22%); }
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 #3a1a54
RGB Code | Hex Code | Preview |
---|---|---|
rgb(58, 26, 84, 10%) | #3a1a541a | |
rgb(58, 26, 84, 20%) | #3a1a5433 | |
rgb(58, 26, 84, 40%) | #3a1a544C | |
rgb(58, 26, 84, 60%) | #3a1a5499 | |
rgb(58, 26, 84, 80%) | #3a1a54CC | |
rgb(58, 26, 84, 100%) | #3a1a54FF |
Saturated and desaturated colors of #3a1a54
HSL Code | Preview |
---|---|
hsl(273, 10%, 22%) | |
hsl(273, 20%, 22%) | |
hsl(273, 40%, 22%) | |
hsl(273, 60%, 22%) | |
hsl(273, 80%, 22%) | |
hsl(273, 100%, 22%) |
#3a1a54 Color Usage In CSS
body { color: #3a1a54; } p { color: rgb(58, 26, 84); } header { border-bottom:1px solid #3a1a54; }