#335138

Closest named color: Dark Slate Gray (#2F4F4F). oklch(40.4% 0.055 148.7), rgb(51, 81, 56).

Aa

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

About this color

#335138 is a dark, muted green. In OKLCH its lightness is 40%, its chroma 0.055 and its hue 149°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.040 away. White text reads best on it, at 8.84:1.

Hue familyGreens
Lightnessdark (40%)
Chromamuted (0.055)
Temperaturein between
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.37:1
White text8.84:1

Values

HEX#335138
RGBrgb(51, 81, 56)
HSLhsl(130, 23%, 26%)
OKLCHoklch(40.4% 0.055 148.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 #335138 8.84:1 AAA Lc -94.6 Preferred for body text
Black text on #335138 2.37:1 Fails Lc 13.8 Not readable
#335138 text on white 8.84:1 AAA Lc 90.2 Preferred for body text
#335138 text on black 2.37:1 Fails Lc -12.1 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 800.

  1. Step 50

    50

    #F3F6F4

    oklch(97% 0.004 157.2)

  2. Step 100

    100

    #E6ECE6

    oklch(93.7% 0.01 145.5)

  3. Step 200

    200

    #D1DDD3

    oklch(88.6% 0.019 150.5)

  4. Step 300

    300

    #B3C7B5

    oklch(80.9% 0.033 148.1)

  5. Step 400

    400

    #8BAA8F

    oklch(70.7% 0.052 148.6)

  6. Step 500

    500

    #6E9574

    oklch(63.2% 0.065 148.9)

  7. Step 600

    600

    #557F5C

    oklch(55.5% 0.071 148.9)

  8. Step 700

    700

    #456B4C

    oklch(49% 0.066 149.3)

  9. Step 800

    800 (this color)

    #335138

    oklch(40.4% 0.055 148.7)

  10. Step 900

    900

    #314835

    oklch(37.6% 0.043 149.3)

  11. Step 950

    950

    #1D2A1F

    oklch(26.9% 0.027 149)

Export this scale for Tailwind in the Tailwind colors tool

#335138 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)#524C360.046
Deuteranopia (no green cones)#4D49390.045
Tritanopia (no blue cones)#2F504A0.030
Achromatopsia (no color)#4A4A4A0.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #335138

    #335138

    oklch(40.4% 0.055 148.7)

  • #593E57

    #593E57

    oklch(40.4% 0.054 329)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #335138

    #335138

    oklch(40.4% 0.055 148.7)

  • #454D2A

    #454D2A

    oklch(40.4% 0.055 119.5)

  • #225249

    #225249

    oklch(40.2% 0.055 179.3)

Open the analogous palette in the generator

Split complementary

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

  • #335138

    #335138

    oklch(40.4% 0.055 148.7)

  • #4C4262

    #4C4262

    oklch(40.3% 0.054 298.3)

  • #613C48

    #613C48

    oklch(40.4% 0.055 358.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #335138

    #335138

    oklch(40.4% 0.055 148.7)

  • #3C4767

    #3C4767

    oklch(40.3% 0.056 269.2)

  • #633D37

    #633D37

    oklch(40.3% 0.055 29.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #335138

    #335138

    oklch(40.4% 0.055 148.7)

  • #2A4D63

    #2A4D63

    oklch(40.4% 0.055 237.8)

  • #593E57

    #593E57

    oklch(40.4% 0.054 329)

  • #5F412A

    #5F412A

    oklch(40.3% 0.055 57.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #335138 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.