#2d36dc Color
Color Codes | |
---|---|
Hex Code | #2d36dc |
RGB Code | rgb(45, 54, 220) |
HSL Code | hsl(237, 71%, 52%) |
#2d36dc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 54, 220); }
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, 71%, 52%); }
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 #2d36dc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 54, 220, 10%) | #2d36dc1a | |
rgb(45, 54, 220, 20%) | #2d36dc33 | |
rgb(45, 54, 220, 40%) | #2d36dc4C | |
rgb(45, 54, 220, 60%) | #2d36dc99 | |
rgb(45, 54, 220, 80%) | #2d36dcCC | |
rgb(45, 54, 220, 100%) | #2d36dcFF |
Saturated and desaturated colors of #2d36dc
HSL Code | Preview |
---|---|
hsl(237, 10%, 52%) | |
hsl(237, 20%, 52%) | |
hsl(237, 40%, 52%) | |
hsl(237, 60%, 52%) | |
hsl(237, 80%, 52%) | |
hsl(237, 100%, 52%) |
#2d36dc Color Usage In CSS
body { color: #2d36dc; } p { color: rgb(45, 54, 220); } header { border-bottom:1px solid #2d36dc; }