Xerobit

Black Hex Code and Color Values

Black (CSS keyword black) is #000000: rgb(0, 0, 0), hsl(0, 0%, 0%).

Black: #000000

  • Hex
    #000000
  • RGB
    rgb(0, 0, 0)
  • HSL
    hsl(0, 0%, 0%)
  • OKLCH
    oklch(0.0% 0.0000 0.0)
  • CMYK
    0%, 0%, 0%, 100%
  • CSS name
    black

Where the name black comes from

black is a named color in CSS Color 4, section 6.1.

One of the sixteen HTML 4.01 names (section 6.5), value #000000; CSS Color 4 says these came from the VGA palette.

black is the darkest color there is: relative luminance 0.0, and the contrast against white is 21:1, the largest value the WCAG 2 formula gives.

Short form: #000.

Shades and tints of Black

  • 10% white #1A1A1A ; 10% black #000000 black
  • 20% white #333333 ; 20% black #000000 black
  • 30% white #4D4D4D darkslategray; 30% black #000000 black
  • 40% white #666666 dimgray; 40% black #000000 black
  • 50% white #808080 gray; 50% black #000000 black

Contrast of #000000

Against white 21.00:1 (passes AAA), against black 1.00:1 (fails); white text reads better on Black. In HSV it is hsv(0, 0%, 0%).

Lightness rank 139 of 139; best partner white, 21.00:1.

Closest names to Black

Black has no hue (OKLCH chroma 0.000). None of its 7 nearest keywords is neutral: all have a hue.

NameHexOKLab distanceThan Black
midnightblue#1919700.322lighter
navy#0000800.330lighter
darkblue#00008B0.350lighter
indigo#4B00820.383lighter
darkslategray#2F4F4F0.405lighter
maroon#8000000.407lighter
darkred#8B00000.432lighter

Color harmony for Black

No hue, so every harmony scheme is Black itself.

Black with color vision deficiency

  • Protanopia: #000000
  • Deuteranopia: #000000
  • Tritanopia: #000000

FAQ

What is the hex code for Black?

#000000, or the keyword black.

Which named color is closest to Black?

midnightblue (#191970), then navy and darkblue.