Onyx Hex Code — #353839
RGB, HSL, and CMYK values for Onyx.
Last updated: April 6, 2026
Onyx Color Values
| Format | Value |
|---|---|
| HEX | #353839 |
| RGB | rgb(53, 56, 57) |
| HSL | hsl(195, 4%, 22%) |
| CMYK | cmyk(7%, 2%, 0%, 78%) |
About Onyx
Color psychology: Sophistication, protection.
Onyx (#353839) is a dark shade of black with a hue angle of 195° on the color wheel, 4% saturation, and 22% lightness. It's commonly used in web design, graphic design, and branding where sophistication, protection are desired associations.
In color theory, Onyx sits in the cool section of the spectrum. Its low saturation creates a muted, understated tone — great for backgrounds, borders, and subtle UI elements.
When to Use Onyx in Design
Web Design
Use Onyx for headings, links, or accent elements against light backgrounds. Dark colors like this provide strong contrast and draw the eye to important content.
Branding & Logo
Onyx conveys sophistication, protection — consider it for brands that want to project these qualities. Test it at small sizes (favicon, social avatar) to ensure it remains recognizable.
Print Design
Use the CMYK values (C:7% M:2% Y:0% K:78%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.
UI / UX Design
Dark colors like Onyx are effective for primary buttons, navigation bars, and text. Use a lighter tint (increase HSL lightness to 90%+) for hover backgrounds.
How to Use Onyx in CSS
/* Using HEX */ color: #353839; background-color: #353839; /* Using RGB */ color: rgb(53, 56, 57); /* Using HSL — best for creating variations */ color: hsl(195, 4%, 22%); /* Transparent overlay (50% opacity) */ background-color: rgba(53, 56, 57, 0.5); /* Lighter variant for hover states */ background-color: hsl(195, 4%, 32%); /* Darker variant for active states */ background-color: hsl(195, 4%, 12%);
HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Onyx without changing its core hue or saturation.
Colors That Go With Onyx
Complementary
Analogous
Triadic
Similar Shades of Black
Frequently Asked Questions
What is the hex code for Onyx?
What is Onyx in RGB and when should I use RGB?
How to use Onyx in CSS with different color formats?
What is the HSL value of Onyx and why is HSL useful for designers?
What is the CMYK value of Onyx for print design?
What colors pair well with Onyx in design projects?
Is Onyx (#353839) accessible for web design and WCAG compliant?
Was this page helpful?
Written by
Tamanna Tasnim
Senior Full Stack Developer
Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.