#313B2E

Closest named color: Onyx (#343A40). oklch(33.9% 0.026 138.5), rgb(49, 59, 46).

Aa

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

About this color

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

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

Values

HEX#313B2E
RGBrgb(49, 59, 46)
HSLhsl(106, 12%, 21%)
OKLCHoklch(33.9% 0.026 138.5)

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 #313B2E 11.69:1 AAA Lc -100.5 Preferred for body text
Black text on #313B2E 1.79:1 Fails Lc 0.0 Not readable
#313B2E text on white 11.69:1 AAA Lc 96.9 Preferred for body text
#313B2E text on black 1.79: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

    #F4F6F4

    oklch(97.1% 0.003 145.5)

  2. Step 100

    100

    #E8EBE7

    oklch(93.7% 0.006 137.8)

  3. Step 200

    200

    #D6DBD4

    oklch(88.6% 0.011 136.6)

  4. Step 300

    300

    #BBC4B8

    oklch(81% 0.019 137.8)

  5. Step 400

    400

    #97A693

    oklch(70.8% 0.032 139.1)

  6. Step 500

    500

    #7E9078

    oklch(63.2% 0.041 137.9)

  7. Step 600

    600

    #677A61

    oklch(55.7% 0.044 138.2)

  8. Step 700

    700

    #556650

    oklch(48.9% 0.04 138.6)

  9. Step 800

    800

    #465442

    oklch(42.8% 0.034 138.8)

  10. Step 900

    900 (this color)

    #313B2E

    oklch(33.9% 0.026 138.5)

  11. Step 950

    950

    #222821

    oklch(26.8% 0.015 141.2)

Export this scale for Tailwind in the Tailwind colors tool

#313B2E 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)#3C392D0.018
Deuteranopia (no green cones)#3A382F0.018
Tritanopia (no blue cones)#313A370.017
Achromatopsia (no color)#3838380.026

Harmonies

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

Complementary

The opposite hue (180°).

  • #313B2E

    #313B2E

    oklch(33.9% 0.026 138.5)

  • #3D3340

    #3D3340

    oklch(33.7% 0.026 318.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313B2E

    #313B2E

    oklch(33.9% 0.026 138.5)

  • #393929

    #393929

    oklch(34% 0.027 107.7)

  • #2A3C35

    #2A3C35

    oklch(33.8% 0.026 168.8)

Open the analogous palette in the generator

Split complementary

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

  • #313B2E

    #313B2E

    oklch(33.9% 0.026 138.5)

  • #373645

    #373645

    oklch(34% 0.026 288)

  • #42323A

    #42323A

    oklch(33.8% 0.026 347.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313B2E

    #313B2E

    oklch(33.9% 0.026 138.5)

  • #2F3845

    #2F3845

    oklch(33.8% 0.026 257.5)

  • #443232

    #443232

    oklch(33.8% 0.026 18.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313B2E

    #313B2E

    oklch(33.9% 0.026 138.5)

  • #2A3A42

    #2A3A42

    oklch(33.8% 0.025 230)

  • #3D3340

    #3D3340

    oklch(33.7% 0.026 318.3)

  • #43342C

    #43342C

    oklch(33.9% 0.026 49.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #313B2E 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.