#310ead Color
Color Codes | |
---|---|
Hex Code | #310ead |
RGB Code | rgb(49, 14, 173) |
HSL Code | hsl(253, 85%, 37%) |
#310ead Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 14, 173); }
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(253, 85%, 37%); }
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 #310ead
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 14, 173, 10%) | #310ead1a | |
rgb(49, 14, 173, 20%) | #310ead33 | |
rgb(49, 14, 173, 40%) | #310ead4C | |
rgb(49, 14, 173, 60%) | #310ead99 | |
rgb(49, 14, 173, 80%) | #310eadCC | |
rgb(49, 14, 173, 100%) | #310eadFF |
Saturated and desaturated colors of #310ead
HSL Code | Preview |
---|---|
hsl(253, 10%, 37%) | |
hsl(253, 20%, 37%) | |
hsl(253, 40%, 37%) | |
hsl(253, 60%, 37%) | |
hsl(253, 80%, 37%) | |
hsl(253, 100%, 37%) |
#310ead Color Usage In CSS
body { color: #310ead; } p { color: rgb(49, 14, 173); } header { border-bottom:1px solid #310ead; }