onyx Color Codes

Color Preview
Onyx Color Codes
Related Colors

Complementary

#d0d0d0

Analogous

hsl(30, 0%, 18%)
hsl(330, 0%, 18%)

Triadic

hsl(120, 0%, 18%)
hsl(240, 0%, 18%)

Tetradic

hsl(90, 0%, 18%)
hsl(180, 0%, 18%)
hsl(270, 0%, 18%)
HTML Snippets
.element { background-color: #2F2F2F; }
.element { color: #2F2F2F; }

This is how the text color would appear.

<span style="color: #2F2F2F;">Colored text</span>

This text has an inline style applied.

Accessibility

Contrast Ratios

Black1.57 (Fail)
White13.39 (AA)
Shades of Onyx

hsl(0, 0%, 0%)

hsl(0, 0%, 3%)

#2F2F2F

hsl(0, 0%, 33%)

hsl(0, 0%, 48%)

Color Blindness Simulations

Protanopia (Red-Blind)

#2f2f2f

Deuteranopia (Green-Blind)

#2f2f2f

Tritanopia (Blue-Blind)

#2f2f2f

Related Palettes

About onyx

onyx (#2F2F2F) is a versatile color that can be used in various design contexts. Explore its hex code, RGB and HSL values, and discover complementary colors to create stunning color palettes for your projects.