#2954dc Color
Color Codes | |
---|---|
Hex Code | #2954dc |
RGB Code | rgb(41, 84, 220) |
HSL Code | hsl(226, 72%, 51%) |
#2954dc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(41, 84, 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(226, 72%, 51%); }
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 #2954dc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(41, 84, 220, 10%) | #2954dc1a | |
rgb(41, 84, 220, 20%) | #2954dc33 | |
rgb(41, 84, 220, 40%) | #2954dc4C | |
rgb(41, 84, 220, 60%) | #2954dc99 | |
rgb(41, 84, 220, 80%) | #2954dcCC | |
rgb(41, 84, 220, 100%) | #2954dcFF |
Saturated and desaturated colors of #2954dc
HSL Code | Preview |
---|---|
hsl(226, 10%, 51%) | |
hsl(226, 20%, 51%) | |
hsl(226, 40%, 51%) | |
hsl(226, 60%, 51%) | |
hsl(226, 80%, 51%) | |
hsl(226, 100%, 51%) |
#2954dc Color Usage In CSS
body { color: #2954dc; } p { color: rgb(41, 84, 220); } header { border-bottom:1px solid #2954dc; }