Black color #000000
rgb(0, 0, 0) · oklch(0% 0 0)
Black (#000000) is a very dark, grayish black. It mixes 0% red, 0% green and 0% blue, with a perceived lightness of 0% in OKLCH. White text reads best on it (21.00:1 vs 1.00:1). The closest other CSS color is Midnight Blue (#191970).
Black color codes
| HEX | |
|---|---|
| RGB | |
| HSL | |
| HSV / HSB | |
| OKLCH | |
| CMYK | |
| CSS keyword |
Click a value to copy it. Convert any other color with the color converter.
Shades, tints and tones of black
Shades mix black with black, tints mix it with white, and tones mix it with gray. Mixing happens in OKLab, so the steps look evenly spaced.
Tints (lighter)
Shades (darker)
Tones (muted)
Black as a UI color scale (50–950)
An 11-step scale for design systems, with black placed at step 950. Copy it as a Tailwind v4 theme below.
Colors that go with black
Harmonies are computed on the OKLCH hue wheel, keeping black’s lightness and saturation where the sRGB gamut allows. Open any row in the palette generator to adjust it.
Complementary
EditThe base color and the hue directly opposite it. Maximum contrast; use one as the accent.
Split complementary
EditThe base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.
Tetradic (rectangle)
EditTwo complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.
Is black accessible? Contrast with white and black
21.00:1
AA pass AA large pass AAA pass
1.00:1
AA fail AA large fail AAA fail
- As a background, black works best with white text.
- For body text on black, use the lighter variant .
How black looks with color blindness
Simulated with the Machado et al. (2009) model. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency.
#000000 Red-blind. Reds look dark and brownish; red and green are easily confused.
#000000 Green-blind, the most common strong form. Red, green, orange and brown look similar.
#000000 Blue-blind and rare. Blue and green are confused, as are yellow and pink.
#000000 Total color blindness, very rare. Only lightness differences are visible.
Colors similar to black
The closest CSS named colors by perceptual distance (ΔE OK; under 2 is hard to tell apart).
Use black in CSS and Tailwind
CSS custom properties
:root {
--black: #000000;
--black-rgb: 0 0 0;
}
.text-black { color: var(--black); }
.bg-black { background-color: var(--black); }
Tailwind v4 theme
@theme {
--color-black-50: #f7f7f7;
--color-black-100: #ededed;
--color-black-200: #dbdbdb;
--color-black-300: #c1c1c1;
--color-black-400: #a1a1a1;
--color-black-500: #868686;
--color-black-600: #6f6f6f;
--color-black-700: #585858;
--color-black-800: #454545;
--color-black-900: #353535;
--color-black-950: #000000;
}
Make a gradient from black: open the gradient generator.
Painting in Procreate or designing in Photoshop? See our palette packs: every color with HEX codes is free to browse, and the swatch files are a quick download.