#31795E

Closest named color: Bluegreen (#017A79). oklch(52.2% 0.084 165.7), rgb(49, 121, 94).

Aa

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

About this color

#31795E is a medium-dark, moderately saturated green. In OKLCH its lightness is 52%, its chroma 0.084 and its hue 166°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Bluegreen (#017A79), ΔE 0.043 away. White text reads best on it, at 5.21:1.

Hue familyGreens
Lightnessmedium-dark (52%)
Chromamoderately saturated (0.084)
Temperaturein between
Nearest nameBluegreen (#017A79)
Black text4.02:1
White text5.21:1

Values

HEX#31795E
RGBrgb(49, 121, 94)
HSLhsl(158, 42%, 33%)
OKLCHoklch(52.2% 0.084 165.7)

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 #31795E 5.21:1 AA Lc -81.0 Fine for body text
Black text on #31795E 4.02:1 AA large text Lc 28.4 Dividers and decoration only
#31795E text on white 5.21:1 AA Lc 75.6 Fine for body text
#31795E text on black 4.02:1 AA large text Lc -26.1 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 700.

  1. Step 50

    50

    #F2F7F4

    oklch(97.2% 0.007 160.1)

  2. Step 100

    100

    #E3ECE8

    oklch(93.5% 0.011 167.8)

  3. Step 200

    200

    #CCDED5

    oklch(88.5% 0.023 164.5)

  4. Step 300

    300

    #A9C9BA

    oklch(80.8% 0.04 165.4)

  5. Step 400

    400

    #79AE97

    oklch(70.7% 0.066 165.8)

  6. Step 500

    500

    #549A7D

    oklch(63.2% 0.084 165.1)

  7. Step 600

    600

    #358467

    oklch(55.6% 0.09 166)

  8. Step 700

    700 (this color)

    #31795E

    oklch(52.2% 0.084 165.7)

  9. Step 800

    800

    #225B46

    oklch(42.7% 0.07 165.9)

  10. Step 900

    900

    #224B3B

    oklch(37.8% 0.054 165.9)

  11. Step 950

    950

    #152C22

    oklch(27.1% 0.035 164.2)

Export this scale for Tailwind in the Tailwind colors tool

#31795E 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)#77715D0.085
Deuteranopia (no green cones)#6C69600.082
Tritanopia (no blue cones)#0D79710.032
Achromatopsia (no color)#6C6C6C0.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #31795E

    #31795E

    oklch(52.2% 0.084 165.7)

  • #8C5574

    #8C5574

    oklch(52.2% 0.084 345.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31795E

    #31795E

    oklch(52.2% 0.084 165.7)

  • #537542

    #537542

    oklch(52.3% 0.086 135.8)

  • #147879

    #147879

    oklch(52.1% 0.084 196)

Open the analogous palette in the generator

Split complementary

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

  • #31795E

    #31795E

    oklch(52.2% 0.084 165.7)

  • #7C5A8B

    #7C5A8B

    oklch(52.2% 0.085 315.2)

  • #945559

    #945559

    oklch(52.3% 0.084 16.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31795E

    #31795E

    oklch(52.2% 0.084 165.7)

  • #656298

    #656298

    oklch(52.2% 0.084 285.6)

  • #92593F

    #92593F

    oklch(52.2% 0.085 45)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31795E

    #31795E

    oklch(52.2% 0.084 165.7)

  • #486B9A

    #486B9A

    oklch(52.2% 0.085 256.1)

  • #8C5574

    #8C5574

    oklch(52.2% 0.084 345.5)

  • #86622C

    #86622C

    oklch(52.2% 0.085 75)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31795E 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.