#338B40

Closest named color: Sea Green (#2E8B57). oklch(56.6% 0.139 146.1), rgb(51, 139, 64).

Aa

Black text reads best on this color (4.90:1).

About this color

#338B40 is a medium-dark, moderately saturated green. In OKLCH its lightness is 57%, its chroma 0.139 and its hue 146°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Sea Green (#2E8B57), ΔE 0.028 away. Black text reads best on it, at 4.90:1.

Hue familyGreens
Lightnessmedium-dark (57%)
Chromamoderately saturated (0.139)
Temperaturein between
Nearest nameSea Green (#2E8B57)
Black text4.90:1
White text4.27:1

Values

HEX#338B40
RGBrgb(51, 139, 64)
HSLhsl(129, 46%, 37%)
OKLCHoklch(56.6% 0.139 146.1)

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 #338B40 4.27:1 AA large text Lc -74.7 Content text, not long reading
Black text on #338B40 4.90:1 AA Lc 34.8 Non-text elements, placeholder text
#338B40 text on white 4.27:1 AA large text Lc 69.3 Content text, not long reading
#338B40 text on black 4.90:1 AA Lc -32.4 Non-text elements, placeholder text

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

  1. Step 50

    50

    #F2F7F2

    oklch(97.1% 0.008 145.5)

  2. Step 100

    100

    #E3EDE3

    oklch(93.6% 0.017 145.4)

  3. Step 200

    200

    #CBE0CC

    oklch(88.6% 0.035 146.6)

  4. Step 300

    300

    #A7CCA9

    oklch(80.9% 0.063 146.4)

  5. Step 400

    400

    #77B27B

    oklch(70.8% 0.1 146)

  6. Step 500

    500

    #509E58

    oklch(63.2% 0.129 146)

  7. Step 600

    600 (this color)

    #338B40

    oklch(56.6% 0.139 146.1)

  8. Step 700

    700

    #21732F

    oklch(49.1% 0.129 146.1)

  9. Step 800

    800

    #1E5E28

    oklch(42.7% 0.107 146.2)

  10. Step 900

    900

    #1F4D25

    oklch(37.7% 0.083 146.3)

  11. Step 950

    950

    #132D16

    oklch(26.9% 0.053 146.4)

Export this scale for Tailwind in the Tailwind colors tool

#338B40 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)#8D7F390.107
Deuteranopia (no green cones)#8277450.107
Tritanopia (no blue cones)#1D887A0.083
Achromatopsia (no color)#7A7A7A0.140

Harmonies

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

Complementary

The opposite hue (180°).

  • #338B40

    #338B40

    oklch(56.6% 0.139 146.1)

  • #9F55A1

    #9F55A1

    oklch(56.5% 0.139 326.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338B40

    #338B40

    oklch(56.6% 0.139 146.1)

  • #737F00

    #737F00

    oklch(56.7% 0.13 116.2)

  • #008A74

    #008A74

    oklch(56.6% 0.106 176.2)

Open the analogous palette in the generator

Split complementary

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

  • #338B40

    #338B40

    oklch(56.6% 0.139 146.1)

  • #7F62BE

    #7F62BE

    oklch(56.7% 0.139 296.2)

  • #B34E79

    #B34E79

    oklch(56.6% 0.139 355.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338B40

    #338B40

    oklch(56.6% 0.139 146.1)

  • #5071C7

    #5071C7

    oklch(56.6% 0.138 266.3)

  • #BA5049

    #BA5049

    oklch(56.6% 0.139 26.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338B40

    #338B40

    oklch(56.6% 0.139 146.1)

  • #0080B4

    #0080B4

    oklch(56.7% 0.122 235.9)

  • #9F55A1

    #9F55A1

    oklch(56.5% 0.139 326.3)

  • #B15C00

    #B15C00

    oklch(56.5% 0.138 56.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #338B40 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.