#310b41 Color
Color Codes | |
---|---|
Hex Code | #310b41 |
RGB Code | rgb(49, 11, 65) |
HSL Code | hsl(282, 71%, 15%) |
#310b41 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 11, 65); }
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(282, 71%, 15%); }
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 #310b41
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 11, 65, 10%) | #310b411a | |
rgb(49, 11, 65, 20%) | #310b4133 | |
rgb(49, 11, 65, 40%) | #310b414C | |
rgb(49, 11, 65, 60%) | #310b4199 | |
rgb(49, 11, 65, 80%) | #310b41CC | |
rgb(49, 11, 65, 100%) | #310b41FF |
Saturated and desaturated colors of #310b41
HSL Code | Preview |
---|---|
hsl(282, 10%, 15%) | |
hsl(282, 20%, 15%) | |
hsl(282, 40%, 15%) | |
hsl(282, 60%, 15%) | |
hsl(282, 80%, 15%) | |
hsl(282, 100%, 15%) |
#310b41 Color Usage In CSS
body { color: #310b41; } p { color: rgb(49, 11, 65); } header { border-bottom:1px solid #310b41; }