black (#000000)

black is a CSS named color with the hex code #000000, rgb(0, 0, 0). It is a very dark, neutral gray.

black#000000
Keywordblack
HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)

Full #000000 details: palettes, shades, color-blind view →

Description

Black has a hue of 0°, saturation 0% and lightness 0%, which places it in the black family. Its strongest channel is red (0).

Using black in CSS

.title { color: black; }
.box   { background: black; border-color: #000000; }
.soft  { background: rgb(0 0 0 / 20%); }   /* black at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
darkslategray#2f4f4f47, 79, 7924.3
midnightblue#19197025, 25, 11227.3
navy#0000800, 0, 12829.7
darkblue#00008b0, 0, 13930.6
indigo#4b008275, 0, 13030.7
maroon#800000128, 0, 030.8
darkslateblue#483d8b72, 61, 13931.4
dimgray#696969105, 105, 10531.5

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 21.00:1; with black text: 1.00:1. White body text on black meets WCAG AA.

Frequently asked questions

What is the hex code for black?
#000000.
What colors are similar to black?
darkslategray (#2f4f4f), midnightblue (#191970), navy (#000080).