#30171f Color
Color Codes | |
---|---|
Hex Code | #30171f |
RGB Code | rgb(48, 23, 31) |
HSL Code | hsl(341, 35%, 14%) |
#30171f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(48, 23, 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(341, 35%, 14%); }
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 #30171f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(48, 23, 31, 10%) | #30171f1a | |
rgb(48, 23, 31, 20%) | #30171f33 | |
rgb(48, 23, 31, 40%) | #30171f4C | |
rgb(48, 23, 31, 60%) | #30171f99 | |
rgb(48, 23, 31, 80%) | #30171fCC | |
rgb(48, 23, 31, 100%) | #30171fFF |
Saturated and desaturated colors of #30171f
HSL Code | Preview |
---|---|
hsl(341, 10%, 14%) | |
hsl(341, 20%, 14%) | |
hsl(341, 40%, 14%) | |
hsl(341, 60%, 14%) | |
hsl(341, 80%, 14%) | |
hsl(341, 100%, 14%) |
#30171f Color Usage In CSS
body { color: #30171f; } p { color: rgb(48, 23, 31); } header { border-bottom:1px solid #30171f; }