Black — #000000

The hex code for black is #000000 — rgb(0, 0, 0), hsl(0.0, 0.0%, 0%). Use it in CSS as color: #000000;.

Black is the absence of color — the darkest possible value. It reads as elegant, powerful, and formal, and it gives the highest possible contrast against white.

Black color codes — click to copy

HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0.0, 0.0%, 0%)
HSVhsv(0.0, 0%, 0%)
CMYKcmyk(0%, 0%, 0%, 100%)

Shades, tints & tones of black

Click any swatch to copy it.

Shades — mix with black
Tints — mix with white
Tones — mix with gray

Black harmonies

Click a swatch to copy it.

Complementary
Analogous
Triadic
Split Complementary
Tetradic
Square
Monochromatic

Colors that go with black

ColorHex
White#FFFFFF
Gold#FFD700
Red#FF0000
Silver#C0C0C0

Where black is used

Use black for luxury, fashion, and minimal design. Black text on white is the most readable combination that exists (a 21.00:1 contrast ratio). Pure black backgrounds can feel harsh; very dark grays are often softer.

What black is often associated with: Elegance, power, formality, and simplicity.

Contrast — can you read text on black?

White text on black scores 21.00:1

Normal text: AA Pass   AAA Pass

Large text (18pt+, or 14pt bold+): AA Pass   AAA Pass

Black text scores 1.00:1

Normal text: AA Fail   AAA Fail

Large text (18pt+, or 14pt bold+): AA Fail   AAA Fail

Check any pair in the contrast checker →

How black looks with color blindness

Simulated with the Machado matrices. Click a swatch to copy the simulated color.

Protanopia

#000000

Deuteranopia

#000000

Tritanopia

#000000

This is a simulation for design checks, not a vision test. See the color blind simulator for any palette.

Frequently asked questions

What is the hex code for black?

The hex code for black is #000000.

What is the RGB of black?

The RGB of black is rgb(0, 0, 0).

What colors go with black?

Colors that go well with black include white (#FFFFFF), gold (#FFD700), red (#FF0000). See the pairings table on this page for the full list.

Is black a good color for a website?

Black works well as an accent or background — white text on it scores 21.00:1, which passes WCAG AA. Check any pair in the contrast checker before you ship it.

What does the color black mean?

Elegance, power, formality, and simplicity.

Related tools

Color Picker · Color Names · Palette Generator · Complementary Colors · Contrast Checker