Black color: codes and shades of black

Pure black is #000000 in HEX, rgb(0, 0, 0) and rgba(0, 0, 0, 1). Soft near-blacks such as #1A1A1A are often easier on the eye.

HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)
CMYK0, 0, 0, 100
OKLCHoklch(0.00 0.00 0)
Formats
HSVhsv(0, 0%, 0%)
LABlab(0.0 0.0 0.0)
OKLABoklab(0.000 0.000 0.000)
DEC0

CMYK is approximate: printers differ

Open in the color picker

Shades of black

Charcoal#36454F
Black olive#3B3C36
Onyx#353839
Jet#343434
Raisin black#242124
Midnight blue-black#0B1F3A
Eerie black#1B1B1B
Near black#1A1A1A
Licorice#1A1110
Rich black#010B13
Black#000000

The full grid lists every named black and near-black with its code.

Black palettes

What goes with black

Black goes with every color. White gives the strongest contrast; gold and silver look elegant; red and hot pink look bold; pastels look modern and soft.

How to make black

Mix red, blue and yellow in dark amounts, or blue and brown (ultramarine and burnt umber).

Black stands for elegance, power and formality, and in many cultures also for mourning. It is the classic color of evening wear, luxury brands and text.

Printables

Black color codes

The black hex code is #000000: no red, no green, no blue light. In RGB that is rgb(0, 0, 0), and in RGBA rgba(0, 0, 0, 1), where the last number is opacity; rgba(0, 0, 0, 0.5) is a 50% transparent black, often used for shadows and overlays. In HTML and CSS you can also write black or the short #000. In printing, pure black ink is CMYK 0, 0, 0, 100; a "rich black" adds some cyan, magenta and yellow for a deeper print.

Shades of black with names

Pure black #000000 is the darkest a screen can show. Many designers prefer a near black for text and backgrounds, such as #1A1A1A or eerie black #1B1B1B, because pure black on white can feel harsh. Jet #343434 and onyx #353839 are soft, dark grays named after stones. Charcoal #36454F leans blue. "Midnight black" has no standard value; it usually means a near-black with a hint of blue, such as #0B1F3A. Metallic black can't be shown as one flat code; use a near-black with a subtle gradient, for example #1C1C1C to #4A4A4A.

What colors go with black

Black goes with every color. White is the classic partner. Gold and black is luxurious; silver and black is sleek. Red, hot pink and orange look bold against black; pastels look fresh and modern. In a room, use black in small doses, such as frames, lamps or a single wall, so the space stays light.

How to make black

Mix the three primaries in strong, dark amounts, or ultramarine and burnt umber for a natural black.

Questions and answers

What is the black hex code?

#000000, rgb(0, 0, 0).

What is rgba black?

rgba(0, 0, 0, 1) is solid black; rgba(0, 0, 0, 0.5) is 50% transparent.

What is the midnight black hex code?

There is no standard; most use a near-black with a hint of blue, such as #0B1F3A.

What color goes with black?

Every color: white, gold, silver, red, hot pink and pastels are classics.

What is the HTML code for black?

#000000, #000 or the name black.