#2b46bd Color
Color Codes | |
---|---|
Hex Code | #2b46bd |
RGB Code | rgb(43, 70, 189) |
HSL Code | hsl(229, 63%, 45%) |
#2b46bd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 70, 189); }
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(229, 63%, 45%); }
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 #2b46bd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 70, 189, 10%) | #2b46bd1a | |
rgb(43, 70, 189, 20%) | #2b46bd33 | |
rgb(43, 70, 189, 40%) | #2b46bd4C | |
rgb(43, 70, 189, 60%) | #2b46bd99 | |
rgb(43, 70, 189, 80%) | #2b46bdCC | |
rgb(43, 70, 189, 100%) | #2b46bdFF |
Saturated and desaturated colors of #2b46bd
HSL Code | Preview |
---|---|
hsl(229, 10%, 45%) | |
hsl(229, 20%, 45%) | |
hsl(229, 40%, 45%) | |
hsl(229, 60%, 45%) | |
hsl(229, 80%, 45%) | |
hsl(229, 100%, 45%) |
#2b46bd Color Usage In CSS
body { color: #2b46bd; } p { color: rgb(43, 70, 189); } header { border-bottom:1px solid #2b46bd; }