Black — #000000
#000000 is a very dark, desaturated near-black grey. It is the CSS named color black.
Color values
| HEX | #000000 |
| RGB | rgb(0, 0, 0) |
| HSL | hsl(0, 0%, 0%) |
| CMYK | cmyk(0%, 0%, 0%, 100%) |
| Decimal | 0 |
| CSS | color: #000000; |
| Android | 0xFF000000 |
| Swift | UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1) |
Accessibility and contrast
| White text on #000000 | 21.00:1 — AA pass · AA large pass · AAA pass |
| Black text on #000000 | 1.00:1 — AA fail · AA large fail · AAA fail |
| Recommended text color | white |
WCAG 2.1 asks for at least 4.5:1 for body text and 3:1 for large text (18 pt, or 14 pt bold).
Tints and shades of #000000
Each swatch keeps the hue and saturation of #000000 and varies only lightness — the quickest way to build a usable scale from a single brand color.
Colors that go with #000000
Harmonies generated by rotating the hue on the color wheel while holding saturation and lightness constant.
Using #000000 in code
/* CSS */
.element { color: #000000; background-color: #000000; }
.element { color: rgb(0 0 0); }
.element { color: hsl(0 0% 0%); }
/* Tailwind arbitrary value */
<div class="bg-[#000000] text-white">
/* SCSS variable */
$brand: #000000;
Frequently asked questions
What color is #000000?
#000000 is a very dark, desaturated near-black grey, which CSS calls black. Its hue sits at 0° on the color wheel, with 0% saturation and 0% lightness.
What is #000000 in RGB?
#000000 converts to rgb(0, 0, 0) — 0 red, 0 green and 0 blue.
What is #000000 in CMYK?
Approximately cmyk(0%, 0%, 0%, 100%). Print output depends on the ICC profile of the press and paper, so treat this as a starting point rather than an exact match.
Should text on #000000 be white or black?
White gives the better contrast ratio (21.00:1 versus 1.00:1).
What is the complementary color of #000000?
#000000 — the hue directly opposite #000000 on the color wheel.