#1f35a2 Color
Color Codes | |
---|---|
Hex Code | #1f35a2 |
RGB Code | rgb(31, 53, 162) |
HSL Code | hsl(230, 68%, 38%) |
#1f35a2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(31, 53, 162); }
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(230, 68%, 38%); }
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 #1f35a2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(31, 53, 162, 10%) | #1f35a21a | |
rgb(31, 53, 162, 20%) | #1f35a233 | |
rgb(31, 53, 162, 40%) | #1f35a24C | |
rgb(31, 53, 162, 60%) | #1f35a299 | |
rgb(31, 53, 162, 80%) | #1f35a2CC | |
rgb(31, 53, 162, 100%) | #1f35a2FF |
Saturated and desaturated colors of #1f35a2
HSL Code | Preview |
---|---|
hsl(230, 10%, 38%) | |
hsl(230, 20%, 38%) | |
hsl(230, 40%, 38%) | |
hsl(230, 60%, 38%) | |
hsl(230, 80%, 38%) | |
hsl(230, 100%, 38%) |
#1f35a2 Color Usage In CSS
body { color: #1f35a2; } p { color: rgb(31, 53, 162); } header { border-bottom:1px solid #1f35a2; }