#1f4bca Color
Color Codes | |
---|---|
Hex Code | #1f4bca |
RGB Code | rgb(31, 75, 202) |
HSL Code | hsl(225, 73%, 46%) |
#1f4bca Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(31, 75, 202); }
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(225, 73%, 46%); }
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 #1f4bca
RGB Code | Hex Code | Preview |
---|---|---|
rgb(31, 75, 202, 10%) | #1f4bca1a | |
rgb(31, 75, 202, 20%) | #1f4bca33 | |
rgb(31, 75, 202, 40%) | #1f4bca4C | |
rgb(31, 75, 202, 60%) | #1f4bca99 | |
rgb(31, 75, 202, 80%) | #1f4bcaCC | |
rgb(31, 75, 202, 100%) | #1f4bcaFF |
Saturated and desaturated colors of #1f4bca
HSL Code | Preview |
---|---|
hsl(225, 10%, 46%) | |
hsl(225, 20%, 46%) | |
hsl(225, 40%, 46%) | |
hsl(225, 60%, 46%) | |
hsl(225, 80%, 46%) | |
hsl(225, 100%, 46%) |
#1f4bca Color Usage In CSS
body { color: #1f4bca; } p { color: rgb(31, 75, 202); } header { border-bottom:1px solid #1f4bca; }