#313E2F

Closest named color: Onyx (#343A40). oklch(34.7% 0.031 141.3), rgb(49, 62, 47).

Aa

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

About this color

#313E2F is a dark, muted green. In OKLCH its lightness is 35%, its chroma 0.031 and its hue 141°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.037 away. White text reads best on it, at 11.28:1.

Hue familyGreens
Lightnessdark (35%)
Chromamuted (0.031)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.86:1
White text11.28:1

Values

HEX#313E2F
RGBrgb(49, 62, 47)
HSLhsl(112, 14%, 21%)
OKLCHoklch(34.7% 0.031 141.3)

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 #313E2F 11.28:1 AAA Lc -99.8 Preferred for body text
Black text on #313E2F 1.86:1 Fails Lc 7.8 Not readable
#313E2F text on white 11.28:1 AAA Lc 96.1 Preferred for body text
#313E2F text on black 1.86: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

    #E7EBE7

    oklch(93.6% 0.007 145.5)

  3. Step 200

    200

    #D5DBD3

    oklch(88.5% 0.013 137.8)

  4. Step 300

    300

    #B9C5B7

    oklch(81% 0.023 141.2)

  5. Step 400

    400

    #94A791

    oklch(70.7% 0.038 141.4)

  6. Step 500

    500

    #7A9176

    oklch(63.1% 0.048 141)

  7. Step 600

    600

    #637B5F

    oklch(55.6% 0.051 141.1)

  8. Step 700

    700

    #52684E

    oklch(49.2% 0.048 140.7)

  9. Step 800

    800

    #435540

    oklch(42.8% 0.041 141.1)

  10. Step 900

    900 (this color)

    #313E2F

    oklch(34.7% 0.031 141.3)

  11. Step 950

    950

    #212920

    oklch(27% 0.02 142)

Export this scale for Tailwind in the Tailwind colors tool

#313E2F 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)#3F3B2E0.024
Deuteranopia (no green cones)#3D3A300.023
Tritanopia (no blue cones)#303D3A0.020
Achromatopsia (no color)#3B3B3B0.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #313E2F

    #313E2F

    oklch(34.7% 0.031 141.3)

  • #413544

    #413544

    oklch(34.8% 0.03 319.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313E2F

    #313E2F

    oklch(34.7% 0.031 141.3)

  • #3A3C29

    #3A3C29

    oklch(34.8% 0.031 112.9)

  • #293F38

    #293F38

    oklch(34.7% 0.03 172.6)

Open the analogous palette in the generator

Split complementary

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

  • #313E2F

    #313E2F

    oklch(34.7% 0.031 141.3)

  • #3A3749

    #3A3749

    oklch(34.7% 0.031 292.3)

  • #47333C

    #47333C

    oklch(34.7% 0.032 350.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313E2F

    #313E2F

    oklch(34.7% 0.031 141.3)

  • #313A4A

    #313A4A

    oklch(34.7% 0.031 261.8)

  • #493433

    #493433

    oklch(34.9% 0.031 21.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313E2F

    #313E2F

    oklch(34.7% 0.031 141.3)

  • #293D47

    #293D47

    oklch(34.7% 0.031 230.4)

  • #413544

    #413544

    oklch(34.8% 0.03 319.5)

  • #47352B

    #47352B

    oklch(34.6% 0.031 50.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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