#2e04ba Color
Color Codes | |
---|---|
Hex Code | #2e04ba |
RGB Code | rgb(46, 04, 186) |
HSL Code | hsl(254, 96%, 37%) |
#2e04ba Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(46, 04, 186); }
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(254, 96%, 37%); }
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 #2e04ba
RGB Code | Hex Code | Preview |
---|---|---|
rgb(46, 04, 186, 10%) | #2e04ba1a | |
rgb(46, 04, 186, 20%) | #2e04ba33 | |
rgb(46, 04, 186, 40%) | #2e04ba4C | |
rgb(46, 04, 186, 60%) | #2e04ba99 | |
rgb(46, 04, 186, 80%) | #2e04baCC | |
rgb(46, 04, 186, 100%) | #2e04baFF |
Saturated and desaturated colors of #2e04ba
HSL Code | Preview |
---|---|
hsl(254, 10%, 37%) | |
hsl(254, 20%, 37%) | |
hsl(254, 40%, 37%) | |
hsl(254, 60%, 37%) | |
hsl(254, 80%, 37%) | |
hsl(254, 100%, 37%) |
#2e04ba Color Usage In CSS
body { color: #2e04ba; } p { color: rgb(46, 04, 186); } header { border-bottom:1px solid #2e04ba; }