Onyx (#353839)
The hex code for Onyx is #353839. It is rgb(53, 56, 57) in RGB, hsl(195, 4%, 22%) in HSL, and about cmyk(7%, 2%, 0%, 78%) in CMYK — a dark gray. White text is the more readable choice on this background.
#353839rgb(53, 56, 57)hsl(195, 4%, 22%)hsv(195, 7%, 22%)cmyk(7%, 2%, 0%, 78%)oklch(33.82% 0.0045 219.61)lab(23.25% -1.15 -1.10)lch(23.25% 1.59 223.57)Colors Closest to Onyx
Onyx is a registered color name. These are the named colors nearest to it, measured as CIE76 distance in CIELAB — a perceptual scale, so the ordering matches what the eye sees rather than how close the raw RGB numbers happen to sit.
Browse the full index of named colors A-Z or every gray in the library.
#353839 Channel Values
How Onyx breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.
| Model | Channels | Notes |
|---|---|---|
| RGB | R 53 · G 56 · B 57 | 8-bit channels as sent to the display |
| HSL | H 195° · S 4% · L 22% | Easiest model for building lighter and darker variants |
| HSV | H 195° · S 7% · V 22% | Matches the picker in most design tools |
| CMYK | C 7% · M 2% · Y 0% · K 78% | Approximate ink mix; confirm with an ICC profile before printing |
| Luminance | 11.82:1 vs white · 1.77:1 vs black | WCAG 2.2 relative-luminance contrast ratios |
Text Contrast & Accessibility
WCAG 2.2 contrast ratios for text on a Onyx background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.
Need a specific ratio against another background? .
Colors That Go With Onyx
Pairings derived from color-wheel relationships. The complementary color sits opposite Onyx; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.
Tints & Shades of Onyx
Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.
Tints
Shades
Want a full 50-950 ramp with semantic roles? .
How Onyx Looks with Color Vision Deficiency
Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.
#353839#383839#373839#373739#363739#353838#353838#373737.
Using #353839 in Code
Copy-ready declarations for the places this color usually ends up.
--onyx: #353839;background-color: #353839;colors: { 'onyx': '#353839' }Color(red: 0.208, green: 0.220, blue: 0.224)<color name="onyx">#353839</color>fill="#353839"More Gray Colors
Onyx sits in the gray family. These are its neighbours across that family's full range, each with its own breakdown.
#353839 Frequently Asked Questions
What is the hex code for Onyx?
The hex code for Onyx is #353839. That is rgb(53, 56, 57) in RGB, hsl(195, 4%, 22%) in HSL, and approximately cmyk(7%, 2%, 0%, 78%) in CMYK.
What is the RGB value of #353839?
#353839 is rgb(53, 56, 57) — red 53, green 56, and blue 57 on the 0-255 scale.
What is the CMYK value of #353839?
#353839 converts to approximately cmyk(7%, 2%, 0%, 78%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.
Should text on #353839 be black or white?
White text is the more readable choice. #353839 scores 11.82:1 against white and 1.77:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.
Can I write #353839 as a CSS color keyword?
No. #353839 is not one of the CSS color keywords, so it has to be written as a hex, rgb() or hsl() value. The closest keyword is darkslategray (#2F4F4F) at a CIE76 distance of 13.92, which is visibly different.
Open Onyx in a Tool
Keep exploring: every gray in the color library, the guide to shades of gray, or the full color library.