#310388 Color
Color Codes | |
---|---|
Hex Code | #310388 |
RGB Code | rgb(49, 03, 136) |
HSL Code | hsl(261, 96%, 27%) |
#310388 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 03, 136); }
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(261, 96%, 27%); }
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 #310388
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 03, 136, 10%) | #3103881a | |
rgb(49, 03, 136, 20%) | #31038833 | |
rgb(49, 03, 136, 40%) | #3103884C | |
rgb(49, 03, 136, 60%) | #31038899 | |
rgb(49, 03, 136, 80%) | #310388CC | |
rgb(49, 03, 136, 100%) | #310388FF |
Saturated and desaturated colors of #310388
HSL Code | Preview |
---|---|
hsl(261, 10%, 27%) | |
hsl(261, 20%, 27%) | |
hsl(261, 40%, 27%) | |
hsl(261, 60%, 27%) | |
hsl(261, 80%, 27%) | |
hsl(261, 100%, 27%) |
#310388 Color Usage In CSS
body { color: #310388; } p { color: rgb(49, 03, 136); } header { border-bottom:1px solid #310388; }