#2d3346 Color
Color Codes | |
---|---|
Hex Code | #2d3346 |
RGB Code | rgb(45, 51, 70) |
HSL Code | hsl(226, 22%, 23%) |
#2d3346 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 51, 70); }
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(226, 22%, 23%); }
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 #2d3346
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 51, 70, 10%) | #2d33461a | |
rgb(45, 51, 70, 20%) | #2d334633 | |
rgb(45, 51, 70, 40%) | #2d33464C | |
rgb(45, 51, 70, 60%) | #2d334699 | |
rgb(45, 51, 70, 80%) | #2d3346CC | |
rgb(45, 51, 70, 100%) | #2d3346FF |
Saturated and desaturated colors of #2d3346
HSL Code | Preview |
---|---|
hsl(226, 10%, 23%) | |
hsl(226, 20%, 23%) | |
hsl(226, 40%, 23%) | |
hsl(226, 60%, 23%) | |
hsl(226, 80%, 23%) | |
hsl(226, 100%, 23%) |
#2d3346 Color Usage In CSS
body { color: #2d3346; } p { color: rgb(45, 51, 70); } header { border-bottom:1px solid #2d3346; }