Shades of Black: 32 Black Color Codes (HEX, RGB, HSL)

Every shade of black, from pure and rich black to charcoal, jet and onyx, with HEX, RGB, HSL and OKLCH codes, plus black color palettes and dark mode colors. Click to copy.

32 shades · click any value to copy

Pure and near blacks

  • Black

    RGB
    HSL
    OKLCH
  • Rich Black

    RGB
    HSL
    OKLCH
  • Vampire Black

    RGB
    HSL
    OKLCH
  • Night

    RGB
    HSL
    OKLCH
  • Smoky Black

    RGB
    HSL
    OKLCH
  • Material Dark

    RGB
    HSL
    OKLCH
  • Eerie Black

    RGB
    HSL
    OKLCH
  • Raisin Black

    RGB
    HSL
    OKLCH

Cool blacks

  • Rich Black (FOGRA29)

    RGB
    HSL
    OKLCH
  • Oxford Blue

    RGB
    HSL
    OKLCH
  • Dark Jungle Green

    RGB
    HSL
    OKLCH
  • Space Cadet

    RGB
    HSL
    OKLCH
  • Charleston Green

    RGB
    HSL
    OKLCH
  • Gunmetal

    RGB
    HSL
    OKLCH
  • Midnight Green

    RGB
    HSL
    OKLCH
  • Black Coral

    RGB
    HSL
    OKLCH

Warm blacks

  • Licorice

    RGB
    HSL
    OKLCH
  • Black Chocolate

    RGB
    HSL
    OKLCH
  • Black Bean

    RGB
    HSL
    OKLCH
  • Bistre

    RGB
    HSL
    OKLCH
  • Black Olive

    RGB
    HSL
    OKLCH
  • Old Burgundy

    RGB
    HSL
    OKLCH
  • Café Noir

    RGB
    HSL
    OKLCH
  • Dark Liver

    RGB
    HSL
    OKLCH

Charcoal and off-blacks

  • Dark Gunmetal

    RGB
    HSL
    OKLCH
  • Black Leather Jacket

    RGB
    HSL
    OKLCH
  • Dark Charcoal

    RGB
    HSL
    OKLCH
  • Jet

    RGB
    HSL
    OKLCH
  • Onyx

    RGB
    HSL
    OKLCH
  • Charcoal

    RGB
    HSL
    OKLCH
  • Arsenic

    RGB
    HSL
    OKLCH
  • Outer Space

    RGB
    HSL
    OKLCH

Black color palettes

  • Monochrome
  • Dark Mode
  • Black and Gold
  • Noir Red
  • Midnight
  • Black and White

How many shades of black are there?

Technically only one: #000000. But designers use a whole range of near-blacks that look black at a glance and have a subtle tint: cool blacks lean blue or green, warm blacks lean brown or red, and charcoals sit at the border with dark gray. This page lists 32 of them.

Why most designs avoid pure black

Pure black text on pure white is the maximum possible contrast (21:1), which can feel harsh on screens, and pure black backgrounds make bright text “vibrate” for some readers. That’s why many sites use a near-black for text, like #1B1B1B, and why Material Design’s dark theme uses #121212 instead of #000000 as its background. Light text on #121212 still has plenty of contrast: #E0E0E0 gives 14.19:1.

Using black in CSS

A near-black base with a slightly lighter surface color gives dark mode depth without shadows, which are hard to see on dark backgrounds.

css
:root {
  --bg: #121212;
  --surface: #1E1E1E;
  --border: #2C2C2C;
  --text: #E0E0E0;
}

body {
  background: var(--bg);
  color: var(--text);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
}

FAQ

What is the hex code for black?
Pure black is #000000, the CSS color black. In RGB it’s rgb(0, 0, 0).

What is rich black?
In print, rich black is black ink mixed with other colors for a deeper black. On screens, the term is used for very dark blacks with a slight tint, like #010203 or the bluish #010B13.

What is the hex code for jet black?
Jet is #343434, a soft black. Onyx (#353839) is similar with a cooler tone.

What is the hex code for charcoal?
Charcoal is #36454F, a blue-tinted dark gray. More grays are on the shades of gray page.

What colors go with black?
Everything, but gold, white, red and bright accents look especially strong. See the palettes above, or pair black with the shades of red.

More colors

Need a gradient from these colors? Use the CSS gradient generator.

Did you find this useful? Share it with your friends: