#2F3940

Closest named color: Onyx (#343A40). oklch(33.8% 0.018 238.6), rgb(47, 57, 64).

Aa

White text reads best on this color (11.79:1).

About this color

#2F3940 is a dark close to neutral grey. In OKLCH its lightness is 34%, its chroma 0.018. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.009 away. White text reads best on it, at 11.79:1.

Hue familyNeutrals
Lightnessdark (34%)
Chromaclose to neutral grey (0.018)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.78:1
White text11.79:1

Values

HEX#2F3940
RGBrgb(47, 57, 64)
HSLhsl(205, 15%, 22%)
OKLCHoklch(33.8% 0.018 238.6)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #2F3940 11.79:1 AAA Lc -100.7 Preferred for body text
Black text on #2F3940 1.78:1 Fails Lc 0.0 Not readable
#2F3940 text on white 11.79:1 AAA Lc 97.1 Preferred for body text
#2F3940 text on black 1.78:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.

  1. Step 50

    50

    #F4F6F6

    oklch(97.2% 0.002 197.1)

  2. Step 100

    100

    #E7EAEC

    oklch(93.5% 0.004 236.5)

  3. Step 200

    200

    #D5DADE

    oklch(88.6% 0.008 241.7)

  4. Step 300

    300

    #B9C2C9

    oklch(80.9% 0.014 241)

  5. Step 400

    400

    #95A3AD

    oklch(70.8% 0.022 238.8)

  6. Step 500

    500

    #7A8C99

    oklch(63% 0.029 239.3)

  7. Step 600

    600

    #637683

    oklch(55.5% 0.03 238)

  8. Step 700

    700

    #52636F

    oklch(49% 0.028 238.9)

  9. Step 800

    800

    #43515B

    oklch(42.7% 0.024 239.2)

  10. Step 900

    900 (this color)

    #2F3940

    oklch(33.8% 0.018 238.6)

  11. Step 950

    950

    #21272C

    oklch(26.9% 0.013 243.3)

Export this scale for Tailwind in the Tailwind colors tool

#2F3940 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#3639400.011
Deuteranopia (no green cones)#3437400.010
Tritanopia (no blue cones)#2A3B3B0.015
Achromatopsia (no color)#3838380.018

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #2F3940

    #2F3940

    oklch(33.8% 0.018 238.6)

  • #3F352E

    #3F352E

    oklch(33.7% 0.019 57)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F3940

    #2F3940

    oklch(33.8% 0.018 238.6)

  • #2D3A3C

    #2D3A3C

    oklch(33.8% 0.018 207.8)

  • #333741

    #333741

    oklch(33.7% 0.018 268.1)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #2F3940

    #2F3940

    oklch(33.8% 0.018 238.6)

  • #403432

    #403432

    oklch(33.7% 0.018 29.1)

  • #3B372D

    #3B372D

    oklch(33.8% 0.018 88.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F3940

    #2F3940

    oklch(33.8% 0.018 238.6)

  • #403437

    #403437

    oklch(33.9% 0.018 1.3)

  • #36392E

    #36392E

    oklch(33.8% 0.019 119.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F3940

    #2F3940

    oklch(33.8% 0.018 238.6)

  • #3D343C

    #3D343C

    oklch(33.8% 0.019 329.6)

  • #3F352E

    #3F352E

    oklch(33.7% 0.019 57)

  • #313A32

    #313A32

    oklch(33.7% 0.018 148.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #2F3940, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #2F3940 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.