#406ac6 Color
Color Codes | |
---|---|
Hex Code | #406ac6 |
RGB Code | rgb(64, 106, 198) |
HSL Code | hsl(221, 54%, 51%) |
#406ac6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(64, 106, 198); }
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(221, 54%, 51%); }
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 #406ac6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(64, 106, 198, 10%) | #406ac61a | |
rgb(64, 106, 198, 20%) | #406ac633 | |
rgb(64, 106, 198, 40%) | #406ac64C | |
rgb(64, 106, 198, 60%) | #406ac699 | |
rgb(64, 106, 198, 80%) | #406ac6CC | |
rgb(64, 106, 198, 100%) | #406ac6FF |
Saturated and desaturated colors of #406ac6
HSL Code | Preview |
---|---|
hsl(221, 10%, 51%) | |
hsl(221, 20%, 51%) | |
hsl(221, 40%, 51%) | |
hsl(221, 60%, 51%) | |
hsl(221, 80%, 51%) | |
hsl(221, 100%, 51%) |
#406ac6 Color Usage In CSS
body { color: #406ac6; } p { color: rgb(64, 106, 198); } header { border-bottom:1px solid #406ac6; }