#2240f0 Color
Color Codes | |
---|---|
Hex Code | #2240f0 |
RGB Code | rgb(34, 64, 240) |
HSL Code | hsl(231, 87%, 54%) |
#2240f0 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(34, 64, 240); }
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, 87%, 54%); }
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 #2240f0
RGB Code | Hex Code | Preview |
---|---|---|
rgb(34, 64, 240, 10%) | #2240f01a | |
rgb(34, 64, 240, 20%) | #2240f033 | |
rgb(34, 64, 240, 40%) | #2240f04C | |
rgb(34, 64, 240, 60%) | #2240f099 | |
rgb(34, 64, 240, 80%) | #2240f0CC | |
rgb(34, 64, 240, 100%) | #2240f0FF |
Saturated and desaturated colors of #2240f0
HSL Code | Preview |
---|---|
hsl(231, 10%, 54%) | |
hsl(231, 20%, 54%) | |
hsl(231, 40%, 54%) | |
hsl(231, 60%, 54%) | |
hsl(231, 80%, 54%) | |
hsl(231, 100%, 54%) |
#2240f0 Color Usage In CSS
body { color: #2240f0; } p { color: rgb(34, 64, 240); } header { border-bottom:1px solid #2240f0; }