#d31227 Color
Color Codes | |
---|---|
Hex Code | #d31227 |
RGB Code | rgb(211, 18, 39) |
HSL Code | hsl(353, 84%, 45%) |
#d31227 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(211, 18, 39); }
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(353, 84%, 45%); }
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 #d31227
RGB Code | Hex Code | Preview |
---|---|---|
rgb(211, 18, 39, 10%) | #d312271a | |
rgb(211, 18, 39, 20%) | #d3122733 | |
rgb(211, 18, 39, 40%) | #d312274C | |
rgb(211, 18, 39, 60%) | #d3122799 | |
rgb(211, 18, 39, 80%) | #d31227CC | |
rgb(211, 18, 39, 100%) | #d31227FF |
Saturated and desaturated colors of #d31227
HSL Code | Preview |
---|---|
hsl(353, 10%, 45%) | |
hsl(353, 20%, 45%) | |
hsl(353, 40%, 45%) | |
hsl(353, 60%, 45%) | |
hsl(353, 80%, 45%) | |
hsl(353, 100%, 45%) |
#d31227 Color Usage In CSS
body { color: #d31227; } p { color: rgb(211, 18, 39); } header { border-bottom:1px solid #d31227; }