Onyx Color
Onyx is a dark gray with hex code #353839. Here are its RGB, HSL, CMYK and OKLCH values, tints and shades, matching colours and CSS.
Onyx color codes
| HEX | #353839 | |
|---|---|---|
| RGB | rgb(53, 56, 57) | |
| HSL | hsl(195, 4%, 22%) | |
| HSV | 195°, 7%, 22% | |
| CMYK | 7%, 2%, 0%, 78% | |
| OKLCH | oklch(33.8% 0.004 219.6) | |
| Tailwind | bg-[#353839] |
Closest Tailwind colour: neutral-700 (#404040). Convert any colour in the Color Converter.
About Onyx
Onyx (#353839) is a dark gray. In the RGB model it is 21% red, 22% green and 22% blue; its hue angle is 195°, with 4% saturation and 22% lightness. For print, the CMYK equivalent is 7% cyan, 2% magenta, 0% yellow and 78% black.
It is a neutral colour and appears in our shades of gray and shades of black. Text on it reads best in white (11.8:1 contrast).
Onyx tints and shades
Tints mix onyx with white; shades mix it with black. Click to copy.
Colors that go with Onyx
Onyx is a neutral, so it works with almost any colour. These pairings use its tone with a hue added.
Complementary
Analogous
Triadic
Split complementary
Onyx contrast
- AA text pass
- AAA text pass
- AA large pass
- AA text fail
- AAA text fail
- AA large fail
Using Onyx in CSS
.brand {
color: #353839;
}
.button {
background: #353839;
color: #fff;
}
.hero {
background: linear-gradient(135deg, #7c7e7e, #353839, #222425);
}Similar colors
Gradients with Onyx
Onyx FAQ
What color is Onyx?
Onyx is a dark gray. Its hex code is #353839 and it is a neutral colour.
What is the hex code for Onyx?
The hex code for Onyx is #353839. In RGB that is rgb(53, 56, 57), and in HSL hsl(195, 4%, 22%).
What is Onyx in CMYK?
Onyx is roughly C 7%, M 2%, Y 0%, K 78% in CMYK. Screen-to-print conversion depends on the printer profile, so check a proof for brand colours.
What colors go well with Onyx?
Onyx is a neutral and pairs with almost any colour; one saturated accent usually looks best.
Is white or black text better on Onyx?
White text reads better on Onyx: 11.8:1 contrast, against 1.8:1 for black. WCAG asks for 4.5:1 for body text.
