designwithfocus

Color names

What Color Is Onyx? The Soft Black Explained

By Design With Focus Team 4 min read
Large onyx swatch with a strip of near-black and charcoal shades

Short answer

Onyx is a soft near-black with a faint gray-green cast, named after the onyx gemstone. The common reference value is #353839, or rgb(53, 56, 57). It is lighter and gentler than pure black, which makes it a popular dark color for text and interfaces. The stone itself is banded chalcedony, often black with white layers.

Last verified against the sources listed below.

Key takeaways

  • Onyx is a soft near-black; the reference HEX is #353839.
  • It is lighter than pure black and darker than charcoal-gray.
  • The onyx stone is banded chalcedony, often black with white bands.
  • Onyx works well for text and dark backgrounds because it is softer than #000000.
  • It is not a CSS keyword, so use the HEX value.

Onyx is the black for people who find pure black too harsh. It is a deep, soft near-black with a hint of gray, named after a banded gemstone. On screens and in print, it reads as black while feeling a little gentler.

Quick facts
Color family Soft near-black
Reference HEX #353839
RGB rgb(53, 56, 57)
HSL hsl(195, 4%, 22%)
CMYK (approx.) 7% C, 2% M, 0% Y, 78% K
Named after The onyx gemstone

Onyx is a soft near-black

Onyx is dark enough to read as black but has a faint gray-green cast. Its red, green and blue values are almost equal and all low, which makes it a near-neutral dark gray-black.

Wikipedia’s shades of black article lists onyx at #353839, sourced from Crayola, and describes its ISCC-NBS category as greenish black. Figma’s onyx page uses the same value.

Onyx vs other near-blacks

Several dark colors look similar at a glance, but they differ in lightness and undertone.

Name HEX Character
Black #000000 Pure, no light
Obsidian (common value) #0B1215 Deepest near-black, cool
Jet #343434 Neutral soft black
Onyx #353839 Soft black, faint cool cast
Charcoal #36454F Blue-gray dark

If you have a dark color and want to know which name fits, the free Color Name Finder shows the nearest match.

The onyx gemstone

Onyx stone is a banded variety of chalcedony, a form of quartz. Wikipedia’s onyx article describes it as having parallel bands, and the classic look is black with white layers.

Merriam-Webster defines onyx as a translucent chalcedony in parallel layers of different colors. Much of the solid black onyx sold in jewelry is dyed to achieve an even color. Natural onyx also appears in browns and reds, and banded stones are often carved into cameos.

Why designers use onyx instead of pure black

Onyx keeps strong contrast while softening the harsh edge of pure black on white. Body text set in #353839 on white still has a very high contrast ratio, far above the 4.5:1 minimum in the WCAG contrast guidance.

It also blends better with photos and other colors. Pure black can look like a hole in a layout, while onyx sits naturally next to grays and muted colors. Many design systems use a near-black like onyx as their main text color for this reason.

Onyx in dark mode

Onyx makes a comfortable dark background, especially with off-white text. It is light enough that shadows and raised surfaces can be slightly darker or lighter around it, which helps show depth.

Build a small scale around onyx for a dark theme: a darker shade for the page, onyx for cards, and a lighter gray for borders. The Color Shades Generator creates that scale from one value.

Colors that go with onyx

Onyx behaves like black, so most colors work with it. A few pairings are especially strong.

  • Clean: onyx with white and light gray.
  • Luxury: onyx with gold, brass or champagne.
  • Bold: onyx with emerald, burgundy or electric blue.
  • Warm: onyx with caramel, cream and terracotta.

Mixing an onyx paint color

Mix black with a little white and a dot of green or blue. Start with black, add white until it lifts slightly, then add the tiniest touch of green to match onyx’s cool cast.

Alternatively, mix ultramarine blue and burnt umber into a near-black, then add a little white. That route gives a softer, more natural dark with built-in undertone, much like onyx. The Color Mixer helps you preview the result.

Onyx in interiors and products

Onyx-colored finishes appear on kitchen fixtures, cabinetry, cars and electronics as a softer alternative to gloss black. They hide fingerprints and dust better than pure black and still look premium.

In a room, onyx works well on a feature wall, a door or a single large piece of furniture. Pair it with warm wood and plenty of light, so the space stays inviting rather than heavy.

Frequently asked questions

Is onyx black or gray?

Onyx is a near-black with a slight gray cast. At #353839, it is clearly dark, but it is lighter than pure black #000000. On screens it reads as a soft black, which many designers prefer for text and backgrounds because it is less harsh.

What is the HEX code for onyx?

The common reference value is #353839, which is rgb(53, 56, 57). It is listed as onyx in Wikipedia's shades of black, sourced from Crayola. For print, it converts to roughly 7% cyan, 2% magenta, 0% yellow and 78% black. Onyx is not a CSS keyword.

What color is onyx stone?

Onyx stone is a banded form of chalcedony, a kind of quartz. The best-known type is black with white bands, but onyx also occurs in browns, reds and other colors. Much black onyx sold in jewelry is dyed to make the black even and deep.

What is the difference between onyx and jet black?

Jet black, named after the fossil material jet, is a deeper, more neutral black; its reference value is #343434, or pure #000000 in some uses. Onyx is a similar darkness but has a slight cool gray-green cast. Side by side, onyx looks softer and a touch cooler.

What colors go with onyx?

Onyx pairs well with white and cream for clean contrast, gold and brass for luxury, and soft gray for a calm monochrome look. Accents such as burgundy, emerald or electric blue stand out strongly against it. Onyx rarely clashes, since it acts like black.

Sources