#2d31b0 Color
Color Codes | |
---|---|
Hex Code | #2d31b0 |
RGB Code | rgb(45, 49, 176) |
HSL Code | hsl(238, 59%, 43%) |
#2d31b0 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 49, 176); }
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(238, 59%, 43%); }
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 #2d31b0
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 49, 176, 10%) | #2d31b01a | |
rgb(45, 49, 176, 20%) | #2d31b033 | |
rgb(45, 49, 176, 40%) | #2d31b04C | |
rgb(45, 49, 176, 60%) | #2d31b099 | |
rgb(45, 49, 176, 80%) | #2d31b0CC | |
rgb(45, 49, 176, 100%) | #2d31b0FF |
Saturated and desaturated colors of #2d31b0
HSL Code | Preview |
---|---|
hsl(238, 10%, 43%) | |
hsl(238, 20%, 43%) | |
hsl(238, 40%, 43%) | |
hsl(238, 60%, 43%) | |
hsl(238, 80%, 43%) | |
hsl(238, 100%, 43%) |
#2d31b0 Color Usage In CSS
body { color: #2d31b0; } p { color: rgb(45, 49, 176); } header { border-bottom:1px solid #2d31b0; }