#3150ff Color
Color Codes | |
---|---|
Hex Code | #3150ff |
RGB Code | rgb(49, 80, 255) |
HSL Code | hsl(231, 100%, 60%) |
#3150ff Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(49, 80, 255); }
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(231, 100%, 60%); }
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 #3150ff
RGB Code | Hex Code | Preview |
---|---|---|
rgb(49, 80, 255, 10%) | #3150ff1a | |
rgb(49, 80, 255, 20%) | #3150ff33 | |
rgb(49, 80, 255, 40%) | #3150ff4C | |
rgb(49, 80, 255, 60%) | #3150ff99 | |
rgb(49, 80, 255, 80%) | #3150ffCC | |
rgb(49, 80, 255, 100%) | #3150ffFF |
Saturated and desaturated colors of #3150ff
HSL Code | Preview |
---|---|
hsl(231, 10%, 60%) | |
hsl(231, 20%, 60%) | |
hsl(231, 40%, 60%) | |
hsl(231, 60%, 60%) | |
hsl(231, 80%, 60%) | |
hsl(231, 100%, 60%) |
#3150ff Color Usage In CSS
body { color: #3150ff; } p { color: rgb(49, 80, 255); } header { border-bottom:1px solid #3150ff; }