#1b024a Color
Color Codes | |
---|---|
Hex Code | #1b024a |
RGB Code | rgb(27, 02, 74) |
HSL Code | hsl(261, 95%, 15%) |
#1b024a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(27, 02, 74); }
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(261, 95%, 15%); }
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 #1b024a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(27, 02, 74, 10%) | #1b024a1a | |
rgb(27, 02, 74, 20%) | #1b024a33 | |
rgb(27, 02, 74, 40%) | #1b024a4C | |
rgb(27, 02, 74, 60%) | #1b024a99 | |
rgb(27, 02, 74, 80%) | #1b024aCC | |
rgb(27, 02, 74, 100%) | #1b024aFF |
Saturated and desaturated colors of #1b024a
HSL Code | Preview |
---|---|
hsl(261, 10%, 15%) | |
hsl(261, 20%, 15%) | |
hsl(261, 40%, 15%) | |
hsl(261, 60%, 15%) | |
hsl(261, 80%, 15%) | |
hsl(261, 100%, 15%) |
#1b024a Color Usage In CSS
body { color: #1b024a; } p { color: rgb(27, 02, 74); } header { border-bottom:1px solid #1b024a; }