Black color — #000000
Black is a CSS named color with the HEX code #000000, RGB value rgb(0, 0, 0) and HSL value hsl(0, 0%, 0%).
Black
Black
#000000
Color codes
- HEX
- #000000
- RGB
- rgb(0, 0, 0)
- HSL
- hsl(0, 0%, 0%)
- HSV
- hsv(0, 0%, 0%)
- CMYK
- cmyk(0%, 0%, 0%, 100%)
- OKLCH
- oklch(0% 0 0)
CSS usage
In CSS you can use the keyword or any equivalent value:
.element {
color: black;
background-color: #000000;
border-color: rgb(0, 0, 0);
outline-color: hsl(0, 0%, 0%);
}Shades
Tints
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Contrast ratio
Contrast ratio against white and black text, per WCAG 2.2.
Black — On white21.00:1 · AAA
Black — On black1.00:1 · Fail