#2d38ed Color
Color Codes | |
---|---|
Hex Code | #2d38ed |
RGB Code | rgb(45, 56, 237) |
HSL Code | hsl(237, 84%, 55%) |
#2d38ed Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 56, 237); }
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(237, 84%, 55%); }
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 #2d38ed
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 56, 237, 10%) | #2d38ed1a | |
rgb(45, 56, 237, 20%) | #2d38ed33 | |
rgb(45, 56, 237, 40%) | #2d38ed4C | |
rgb(45, 56, 237, 60%) | #2d38ed99 | |
rgb(45, 56, 237, 80%) | #2d38edCC | |
rgb(45, 56, 237, 100%) | #2d38edFF |
Saturated and desaturated colors of #2d38ed
HSL Code | Preview |
---|---|
hsl(237, 10%, 55%) | |
hsl(237, 20%, 55%) | |
hsl(237, 40%, 55%) | |
hsl(237, 60%, 55%) | |
hsl(237, 80%, 55%) | |
hsl(237, 100%, 55%) |
#2d38ed Color Usage In CSS
body { color: #2d38ed; } p { color: rgb(45, 56, 237); } header { border-bottom:1px solid #2d38ed; }