#1518d4 Color
Color Codes | |
---|---|
Hex Code | #1518d4 |
RGB Code | rgb(21, 24, 212) |
HSL Code | hsl(239, 82%, 46%) |
#1518d4 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(21, 24, 212); }
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(239, 82%, 46%); }
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 #1518d4
RGB Code | Hex Code | Preview |
---|---|---|
rgb(21, 24, 212, 10%) | #1518d41a | |
rgb(21, 24, 212, 20%) | #1518d433 | |
rgb(21, 24, 212, 40%) | #1518d44C | |
rgb(21, 24, 212, 60%) | #1518d499 | |
rgb(21, 24, 212, 80%) | #1518d4CC | |
rgb(21, 24, 212, 100%) | #1518d4FF |
Saturated and desaturated colors of #1518d4
HSL Code | Preview |
---|---|
hsl(239, 10%, 46%) | |
hsl(239, 20%, 46%) | |
hsl(239, 40%, 46%) | |
hsl(239, 60%, 46%) | |
hsl(239, 80%, 46%) | |
hsl(239, 100%, 46%) |
#1518d4 Color Usage In CSS
body { color: #1518d4; } p { color: rgb(21, 24, 212); } header { border-bottom:1px solid #1518d4; }