#2F3B38 Onyx
#2F3B38 is Onyx.
#2F3B38
Onyx
What are the RGB, HSL, OKLCH and CMYK values of #2F3B38?
- HEX
- #2F3B38
- RGB
- rgb(47, 59, 56)
- HSL
- hsl(165, 11%, 21%)
- OKLCH
- oklch(34.0% 0.017 178)
- CMYK
- 20, 0, 5, 77
#2F3B38 has a contrast ratio of 11.64:1 against white and 1.80:1 against black, so white is the better background for text in this color and light text reads best on it.
Contrast checker
Text color (rows) on background (columns), scored against WCAG 2.2. White and near-black text on this color.
| Text ↓ / Bg → | #2F3B38 |
|---|---|
| #2F3B38 | Same color |
| White | 11.6AAA |
| Near-black | 1.5Fail |
AAA ≥ 7:1 · AA ≥ 4.5:1 body text· AA18 ≥ 3:1 large text (18pt, or 14pt bold) only
Text that works on each color
- White on #2F3B38 · 11.6:1
Tints and shades of #2F3B38
Same hue and chroma in OKLCH, lighter to darker.
Colors that go with #2F3B38
Six harmony rules built from this color. Open any in the Studio.
- AnalogousNeighboring hues. Calm and cohesive, with little tension.
- ComplementaryOpposite hues. Maximum contrast — strong for accents.
- SplitA hue plus the two neighbors of its opposite. Contrast without the clash.
- TriadicThree evenly spaced hues. Vivid and balanced.
- TetradicFour hues in two complementary pairs. Rich, and easy to overuse.
- MonoOne hue across a range of lightness. Always harmonious.
Color blindness check
About 1 in 12 men and 1 in 200 women see color differently. Simulated with the Machado (2009) model.
No green cones — the most common form. No two swatches become hard to tell apart here.
Export
Copy-paste code, or download the swatches.
:root {
--onyx-1: #2F3B38; /* Onyx */
}Palettes, gradients and meshes with #2F3B38
Items using this color or one perceptually close to it, closest first.
Palettes (75)
- Forest Floor
- Oatmilk Studio
- Digital Matcha
- Electric Lime
- Morning Dew
- Butter Green
- Flamingo Pool
- Nordic Morning
- Rust Belt
- Blulette
- Teal Typewriter
- Cherry Blossom Rain
- Mint Ledger
- Night Shift
- Slate Studio
- Pacific Rim
- Iceberg
- Pistachio Gelato
- Kiwi Smoothie
- Concrete Gallery
- Coastal Cottage
- Heather Tweed
- Bioluminescence
- Sunset Boulevard
- Sorbet Stand
- Seafoam Linen
- Cherry Chrome
- Harbor Fog
- Thistle Moor
- Cacao Nib
- Pale Jade Spa
- Spring Onion
- Fern Gully
- Desert Bloom
- Dusty Rose Atelier
- Honeycomb
- Lagoon Postcard
- Porcelain Blue
- Tropical Punch
- Ink Wash
- Peppermint Bark
- Polar Night
- Blush Ballet
- Sunflower Kitchen
- Tidepool
- Clay Studio
- Rosewood Library
- Pine Needle
- Aqua Studio
- Olive Grove
- Golden Wheat
- Rain City Neon
- Watermelon Slice
- Kyoto Tea House
- Steel Harbour
- Royal Navy Crest
- Lemon Meringue
- Spiced Chai
- Moss & Stone
- Mango Lassi
- Hazelnut Praline
- Sandstone Canyon
- Espresso Bar
- Turquoise Tile
- Mauve Gallery
- Golden Hour Picnic
- Lavender Laundry