#4f04af Color
Color Codes | |
---|---|
Hex Code | #4f04af |
RGB Code | rgb(79, 04, 175) |
HSL Code | hsl(266, 96%, 35%) |
#4f04af Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(79, 04, 175); }
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(266, 96%, 35%); }
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 #4f04af
RGB Code | Hex Code | Preview |
---|---|---|
rgb(79, 04, 175, 10%) | #4f04af1a | |
rgb(79, 04, 175, 20%) | #4f04af33 | |
rgb(79, 04, 175, 40%) | #4f04af4C | |
rgb(79, 04, 175, 60%) | #4f04af99 | |
rgb(79, 04, 175, 80%) | #4f04afCC | |
rgb(79, 04, 175, 100%) | #4f04afFF |
Saturated and desaturated colors of #4f04af
HSL Code | Preview |
---|---|
hsl(266, 10%, 35%) | |
hsl(266, 20%, 35%) | |
hsl(266, 40%, 35%) | |
hsl(266, 60%, 35%) | |
hsl(266, 80%, 35%) | |
hsl(266, 100%, 35%) |
#4f04af Color Usage In CSS
body { color: #4f04af; } p { color: rgb(79, 04, 175); } header { border-bottom:1px solid #4f04af; }