#2D3E40 Onyx
#2D3E40 is Onyx.
#2D3E40
Onyx
What are the RGB, HSL, OKLCH and CMYK values of #2D3E40?
- HEX
- #2D3E40
- RGB
- rgb(45, 62, 64)
- HSL
- hsl(186, 17%, 21%)
- OKLCH
- oklch(35.0% 0.022 205)
- CMYK
- 30, 3, 0, 75
#2D3E40 has a contrast ratio of 11.20:1 against white and 1.87: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 → | #2D3E40 |
|---|---|
| #2D3E40 | Same color |
| White | 11.2AAA |
| Near-black | 1.6Fail |
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 #2D3E40 · 11.2:1
Tints and shades of #2D3E40
Same hue and chroma in OKLCH, lighter to darker.
Colors that go with #2D3E40
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: #2D3E40; /* Onyx */
}Palettes, gradients and meshes with #2D3E40
Items using this color or one perceptually close to it, closest first.
Palettes (61)
- Kazoku no aka
- Night Shift
- Slate Studio
- Cherry Blossom Rain
- Flamingo Pool
- Coastal Cottage
- Blulette
- Sage Apothecary
- Pacific Rim
- Iceberg
- Butter Green
- Harbor Fog
- Morning Dew
- Digital Matcha
- Rust Belt
- Seafoam Linen
- Electric Lime
- Oatmilk Studio
- Nordic Morning
- Desert Bloom
- Mint Ledger
- Pale Jade Spa
- Ink Wash
- Bioluminescence
- Pistachio Gelato
- Sorbet Stand
- Porcelain Blue
- Peppermint Bark
- Polar Night
- Turquoise Tile
- Heather Tweed
- Sunset Boulevard
- Kiwi Smoothie
- Thistle Moor
- Concrete Gallery
- Pine Needle
- Cherry Chrome
- Reef Snorkel
- Tropical Punch
- Watermelon Slice
- Cacao Nib
- Royal Navy Crest
- Lagoon Postcard
- Spring Onion
- Blush Ballet
- Lavender Laundry
- Aqua Studio
- Wildflower Field
- Tidepool
- Dusty Rose Atelier
- Fern Gully
- Rosewood Library
- Rain City Neon