#1f2cbe Color
Color Codes | |
---|---|
Hex Code | #1f2cbe |
RGB Code | rgb(31, 44, 190) |
HSL Code | hsl(235, 72%, 43%) |
#1f2cbe Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(31, 44, 190); }
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(235, 72%, 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 #1f2cbe
RGB Code | Hex Code | Preview |
---|---|---|
rgb(31, 44, 190, 10%) | #1f2cbe1a | |
rgb(31, 44, 190, 20%) | #1f2cbe33 | |
rgb(31, 44, 190, 40%) | #1f2cbe4C | |
rgb(31, 44, 190, 60%) | #1f2cbe99 | |
rgb(31, 44, 190, 80%) | #1f2cbeCC | |
rgb(31, 44, 190, 100%) | #1f2cbeFF |
Saturated and desaturated colors of #1f2cbe
HSL Code | Preview |
---|---|
hsl(235, 10%, 43%) | |
hsl(235, 20%, 43%) | |
hsl(235, 40%, 43%) | |
hsl(235, 60%, 43%) | |
hsl(235, 80%, 43%) | |
hsl(235, 100%, 43%) |
#1f2cbe Color Usage In CSS
body { color: #1f2cbe; } p { color: rgb(31, 44, 190); } header { border-bottom:1px solid #1f2cbe; }