White text passes AAA
11.82:1

Onyx

#353839
PNG

The onyx hex code is #353839, and its RGB value is 53, 56, 57.

Onyx is named after the banded gemstone, best known in its black form. #353839 is the reference value, a deep charcoal rather than pure black, which makes it a comfortable color for dark interfaces. White text on it reaches 11.8:1.

Onyx color codes

HEX#353839
RGBrgb(53, 56, 57)
HSLhsl(195, 4%, 22%)
OKLCHoklch(33.8% 0.004 219.6)
CMYKcmyk(7%, 2%, 0%, 78%)
CMYK is an approximate screen conversion, not for print matching.

Shades of onyx

Ten lighter and ten darker shades of onyx, with onyx in the middle. Click a shade to copy its hex code.

LightestOnyx #353839Darkest

Readability

White text on onyxNormal text at 16px. The quick brown fox jumps over the lazy dog.
11.82:1
  • Passes AA normal
  • Passes AA large
  • Passes AAA normal
  • Passes AAA large
Dark text on onyxNormal text at 16px. The quick brown fox jumps over the lazy dog.
1.78:1
  • Fails AA and AAA

Colors that go with onyx

#353839#393635

Complementary

The opposite on the color wheel
#353938#353839#353639

Analogous

Its two neighbors
#353839#393538#383935

Triadic

Three evenly spaced colors
#353839#393536#393835

Split-complementary

The two colors beside its opposite

Onyx color palettes

Monochrome

Lighter and darker versions of the same color.

Analogous

Neighbors on the color wheel, for a calm, related look.

Complementary

The color with its opposite, for strong contrast.

Triadic

Three colors evenly spaced around the wheel, with a light and dark version.

Onyx background

Plain and gradient onyx backgrounds for phone and desktop wallpapers, slides and mockups, free to download.

Solid onyx background

Onyx gradient background

Similar colors

Questions about onyx

What is the hex code for onyx?

The hex code for onyx is #353839. In RGB it's rgb(53, 56, 57), and in HSL it's hsl(195, 4%, 22%).

What is the RGB value of onyx?

Onyx is rgb(53, 56, 57) in RGB: 53 red, 56 green and 57 blue on a 0-255 scale.

What colors go with onyx?

Its complementary color is #393635. For a calmer look, try the analogous colors #353938 and #353639, or one of the palettes above, which all include onyx.

Is text readable on onyx?

White text is the better choice, with a contrast ratio of 11.82:1. That passes WCAG AA for normal text.