#3b4faa Color
Color Codes | |
---|---|
Hex Code | #3b4faa |
RGB Code | rgb(59, 79, 170) |
HSL Code | hsl(229, 48%, 45%) |
#3b4faa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(59, 79, 170); }
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, 48%, 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 #3b4faa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(59, 79, 170, 10%) | #3b4faa1a | |
rgb(59, 79, 170, 20%) | #3b4faa33 | |
rgb(59, 79, 170, 40%) | #3b4faa4C | |
rgb(59, 79, 170, 60%) | #3b4faa99 | |
rgb(59, 79, 170, 80%) | #3b4faaCC | |
rgb(59, 79, 170, 100%) | #3b4faaFF |
Saturated and desaturated colors of #3b4faa
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%) |
#3b4faa Color Usage In CSS
body { color: #3b4faa; } p { color: rgb(59, 79, 170); } header { border-bottom:1px solid #3b4faa; }