#271a3e Color
Color Codes | |
---|---|
Hex Code | #271a3e |
RGB Code | rgb(39, 26, 62) |
HSL Code | hsl(262, 41%, 17%) |
#271a3e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(39, 26, 62); }
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(262, 41%, 17%); }
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 #271a3e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(39, 26, 62, 10%) | #271a3e1a | |
rgb(39, 26, 62, 20%) | #271a3e33 | |
rgb(39, 26, 62, 40%) | #271a3e4C | |
rgb(39, 26, 62, 60%) | #271a3e99 | |
rgb(39, 26, 62, 80%) | #271a3eCC | |
rgb(39, 26, 62, 100%) | #271a3eFF |
Saturated and desaturated colors of #271a3e
HSL Code | Preview |
---|---|
hsl(262, 10%, 17%) | |
hsl(262, 20%, 17%) | |
hsl(262, 40%, 17%) | |
hsl(262, 60%, 17%) | |
hsl(262, 80%, 17%) | |
hsl(262, 100%, 17%) |
#271a3e Color Usage In CSS
body { color: #271a3e; } p { color: rgb(39, 26, 62); } header { border-bottom:1px solid #271a3e; }