Skip to content

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

Edit

The base color and the hue directly opposite it. Maximum contrast; use one as the accent.

Analogous

Edit

Neighbors 30° either side on the hue wheel. Calm and cohesive, common in nature.

Triadic

Edit

Three hues spaced 120° apart. Vibrant but balanced; let one dominate.

Split complementary

Edit

The base plus the two hues beside its complement (±30°). Contrast with less tension than complementary.

Tetradic (rectangle)

Edit

Two complementary pairs (rectangle: 0°, 60°, 180°, 240°). Rich; needs one dominant color.

Monochromatic

Edit

One hue at different lightness levels. Safe, elegant, and easy to read.

Is black accessible? Contrast with white and black

Black text on white

21.00:1

AA pass AA large pass AAA pass

Black text on black

1.00:1

AA fail AA large fail AAA fail

Check black against any other color

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.

Protanopia: #000000
Red-blind. Reds look dark and brownish; red and green are easily confused.
Deuteranopia: #000000
Green-blind, the most common strong form. Red, green, orange and brown look similar.
Tritanopia: #000000
Blue-blind and rare. Blue and green are confused, as are yellow and pink.
Achromatopsia: #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.