#3198fa Color
Color Codes | |
---|---|
Hex Code | #3198fa |
RGB Code | rgb(49, 152, 250) |
HSL Code | hsl(209, 95%, 59%) |
#3198fa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 152, 250); }
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(209, 95%, 59%); }
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 #3198fa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 152, 250, 10%) | #3198fa1a | |
rgb(49, 152, 250, 20%) | #3198fa33 | |
rgb(49, 152, 250, 40%) | #3198fa4C | |
rgb(49, 152, 250, 60%) | #3198fa99 | |
rgb(49, 152, 250, 80%) | #3198faCC | |
rgb(49, 152, 250, 100%) | #3198faFF |
Saturated and desaturated colors of #3198fa
HSL Code | Preview |
---|---|
hsl(209, 10%, 59%) | |
hsl(209, 20%, 59%) | |
hsl(209, 40%, 59%) | |
hsl(209, 60%, 59%) | |
hsl(209, 80%, 59%) | |
hsl(209, 100%, 59%) |
#3198fa Color Usage In CSS
body { color: #3198fa; } p { color: rgb(49, 152, 250); } header { border-bottom:1px solid #3198fa; }