#1F5F31

Closest named color: Spruce (#0A5F38). oklch(43.2% 0.099 149.5), rgb(31, 95, 49).

Aa

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

About this color

#1F5F31 is a dark, moderately saturated green. In OKLCH its lightness is 43%, its chroma 0.099 and its hue 150°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Spruce (#0A5F38), ΔE 0.012 away. White text reads best on it, at 7.66:1.

Hue familyGreens
Lightnessdark (43%)
Chromamoderately saturated (0.099)
Temperaturein between
Nearest nameSpruce (#0A5F38)
Black text2.73:1
White text7.66:1

Values

HEX#1F5F31
RGBrgb(31, 95, 49)
HSLhsl(137, 51%, 25%)
OKLCHoklch(43.2% 0.099 149.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 #1F5F31 7.66:1 AAA Lc -91.1 Preferred for body text
Black text on #1F5F31 2.73:1 Fails Lc 17.7 Dividers and decoration only
#1F5F31 text on white 7.66:1 AAA Lc 86.3 Fine for body text
#1F5F31 text on black 2.73:1 Fails Lc -15.7 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F2F7F3

    oklch(97.1% 0.007 151.9)

  2. Step 100

    100

    #E3EDE4

    oklch(93.6% 0.016 148.4)

  3. Step 200

    200

    #CBDFCE

    oklch(88.4% 0.031 149.8)

  4. Step 300

    300

    #A7CCAD

    oklch(81% 0.058 149.6)

  5. Step 400

    400

    #76B181

    oklch(70.7% 0.093 149.4)

  6. Step 500

    500

    #4F9D61

    oklch(63% 0.119 149.4)

  7. Step 600

    600

    #2E8748

    oklch(55.5% 0.128 149.7)

  8. Step 700

    700

    #207339

    oklch(49.2% 0.12 149.4)

  9. Step 800

    800 (this color)

    #1F5F31

    oklch(43.2% 0.099 149.5)

  10. Step 900

    900

    #1F4D2A

    oklch(37.8% 0.078 149.2)

  11. Step 950

    950

    #132D19

    oklch(27% 0.049 149.6)

Export this scale for Tailwind in the Tailwind colors tool

#1F5F31 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)#60572D0.081
Deuteranopia (no green cones)#5851340.081
Tritanopia (no blue cones)#0A5D540.056
Achromatopsia (no color)#5353530.099

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F5F31

    #1F5F31

    oklch(43.2% 0.099 149.5)

  • #6E3A6A

    #6E3A6A

    oklch(43.2% 0.099 330)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F5F31

    #1F5F31

    oklch(43.2% 0.099 149.5)

  • #4A5806

    #4A5806

    oklch(43.3% 0.1 120)

  • #005E52

    #005E52

    oklch(43.2% 0.078 180.2)

Open the analogous palette in the generator

Split complementary

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

  • #1F5F31

    #1F5F31

    oklch(43.2% 0.099 149.5)

  • #59427E

    #59427E

    oklch(43.2% 0.099 300)

  • #7A364F

    #7A364F

    oklch(43.2% 0.099 358.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F5F31

    #1F5F31

    oklch(43.2% 0.099 149.5)

  • #3B4C87

    #3B4C87

    oklch(43.2% 0.1 269.8)

  • #7E382F

    #7E382F

    oklch(43.2% 0.099 29.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F5F31

    #1F5F31

    oklch(43.2% 0.099 149.5)

  • #005680

    #005680

    oklch(43.2% 0.098 239.6)

  • #6E3A6A

    #6E3A6A

    oklch(43.2% 0.099 330)

  • #774105

    #774105

    oklch(43.3% 0.099 59.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #1F5F31 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.