#2d0e60 Color
Color Codes | |
---|---|
Hex Code | #2d0e60 |
RGB Code | rgb(45, 14, 96) |
HSL Code | hsl(263, 75%, 22%) |
#2d0e60 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 14, 96); }
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(263, 75%, 22%); }
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 #2d0e60
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 14, 96, 10%) | #2d0e601a | |
rgb(45, 14, 96, 20%) | #2d0e6033 | |
rgb(45, 14, 96, 40%) | #2d0e604C | |
rgb(45, 14, 96, 60%) | #2d0e6099 | |
rgb(45, 14, 96, 80%) | #2d0e60CC | |
rgb(45, 14, 96, 100%) | #2d0e60FF |
Saturated and desaturated colors of #2d0e60
HSL Code | Preview |
---|---|
hsl(263, 10%, 22%) | |
hsl(263, 20%, 22%) | |
hsl(263, 40%, 22%) | |
hsl(263, 60%, 22%) | |
hsl(263, 80%, 22%) | |
hsl(263, 100%, 22%) |
#2d0e60 Color Usage In CSS
body { color: #2d0e60; } p { color: rgb(45, 14, 96); } header { border-bottom:1px solid #2d0e60; }