#401a1f Color
Color Codes | |
---|---|
Hex Code | #401a1f |
RGB Code | rgb(64, 26, 31) |
HSL Code | hsl(352, 42%, 18%) |
#401a1f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(64, 26, 31); }
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(352, 42%, 18%); }
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 #401a1f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(64, 26, 31, 10%) | #401a1f1a | |
rgb(64, 26, 31, 20%) | #401a1f33 | |
rgb(64, 26, 31, 40%) | #401a1f4C | |
rgb(64, 26, 31, 60%) | #401a1f99 | |
rgb(64, 26, 31, 80%) | #401a1fCC | |
rgb(64, 26, 31, 100%) | #401a1fFF |
Saturated and desaturated colors of #401a1f
HSL Code | Preview |
---|---|
hsl(352, 10%, 18%) | |
hsl(352, 20%, 18%) | |
hsl(352, 40%, 18%) | |
hsl(352, 60%, 18%) | |
hsl(352, 80%, 18%) | |
hsl(352, 100%, 18%) |
#401a1f Color Usage In CSS
body { color: #401a1f; } p { color: rgb(64, 26, 31); } header { border-bottom:1px solid #401a1f; }