#338A2B

Closest named color: Forest Green (#228B22). oklch(56.1% 0.155 141.9), rgb(51, 138, 43).

Aa

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

About this color

#338A2B is a medium-dark, vivid green. In OKLCH its lightness is 56%, its chroma 0.155 and its hue 142°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Forest Green (#228B22), ΔE 0.014 away. Black text reads best on it, at 4.81:1.

Hue familyGreens
Lightnessmedium-dark (56%)
Chromavivid (0.155)
Temperaturein between
Nearest nameForest Green (#228B22)
Black text4.81:1
White text4.36:1

Values

HEX#338A2B
RGBrgb(51, 138, 43)
HSLhsl(115, 52%, 35%)
OKLCHoklch(56.1% 0.155 141.9)

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 #338A2B 4.36:1 AA large text Lc -75.4 Fine for body text
Black text on #338A2B 4.81:1 AA Lc 34.2 Non-text elements, placeholder text
#338A2B text on white 4.36:1 AA large text Lc 69.9 Content text, not long reading
#338A2B text on black 4.81:1 AA Lc -31.8 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

    #F2F7F1

    oklch(97.1% 0.01 140.5)

  2. Step 100

    100

    #E3EEE1

    oklch(93.7% 0.021 140.9)

  3. Step 200

    200

    #CBE0C8

    oklch(88.4% 0.039 141.7)

  4. Step 300

    300

    #A8CDA3

    oklch(81% 0.07 141.7)

  5. Step 400

    400

    #77B270

    oklch(70.6% 0.112 141.8)

  6. Step 500

    500

    #519E49

    oklch(63% 0.143 141.9)

  7. Step 600

    600 (this color)

    #338A2B

    oklch(56.1% 0.155 141.9)

  8. Step 700

    700

    #23741C

    oklch(49.2% 0.145 142)

  9. Step 800

    800

    #1F5E1A

    oklch(42.6% 0.119 142.1)

  10. Step 900

    900

    #204D1C

    oklch(37.6% 0.092 142)

  11. Step 950

    950

    #142D11

    oklch(26.9% 0.058 141.6)

Export this scale for Tailwind in the Tailwind colors tool

#338A2B 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)#8D7D1E0.109
Deuteranopia (no green cones)#8376340.110
Tritanopia (no blue cones)#2486770.101
Achromatopsia (no color)#7979790.156

Harmonies

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

Complementary

The opposite hue (180°).

  • #338A2B

    #338A2B

    oklch(56.1% 0.155 141.9)

  • #9D50AA

    #9D50AA

    oklch(56% 0.156 321.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338A2B

    #338A2B

    oklch(56.1% 0.155 141.9)

  • #777B00

    #777B00

    oklch(56.1% 0.124 112)

  • #00896D

    #00896D

    oklch(56.1% 0.109 171.7)

Open the analogous palette in the generator

Split complementary

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

  • #338A2B

    #338A2B

    oklch(56.1% 0.155 141.9)

  • #785FC7

    #785FC7

    oklch(56% 0.156 291.7)

  • #B5467E

    #B5467E

    oklch(56% 0.155 351.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338A2B

    #338A2B

    oklch(56.1% 0.155 141.9)

  • #3F70CE

    #3F70CE

    oklch(56% 0.155 262)

  • #BF464A

    #BF464A

    oklch(56.1% 0.156 21.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338A2B

    #338A2B

    oklch(56.1% 0.155 141.9)

  • #007FAC

    #007FAC

    oklch(56% 0.115 232.2)

  • #9D50AA

    #9D50AA

    oklch(56% 0.156 321.7)

  • #B45700

    #B45700

    oklch(56.1% 0.144 52.2)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #338A2B.

Similar named colors

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

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