#338F1D

Closest named color: Forest Green (#228B22). oklch(57.3% 0.17 140.4), rgb(51, 143, 29).

Aa

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

About this color

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

Hue familyGreens
Lightnessmedium-dark (57%)
Chromavivid (0.170)
Temperaturein between
Nearest nameForest Green (#228B22)
Black text5.08:1
White text4.12:1

Values

HEX#338F1D
RGBrgb(51, 143, 29)
HSLhsl(108, 66%, 34%)
OKLCHoklch(57.3% 0.17 140.4)

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 #338F1D 4.12:1 AA large text Lc -73.5 Content text, not long reading
Black text on #338F1D 5.08:1 AA Lc 36.1 Non-text elements, placeholder text
#338F1D text on white 4.12:1 AA large text Lc 68.0 Content text, not long reading
#338F1D text on black 5.08:1 AA Lc -33.7 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

    #E2EEE0

    oklch(93.6% 0.023 141.2)

  3. Step 200

    200

    #CBE1C6

    oklch(88.6% 0.043 139.9)

  4. Step 300

    300

    #A6CD9F

    oklch(80.8% 0.076 140.8)

  5. Step 400

    400

    #75B369

    oklch(70.6% 0.122 140.4)

  6. Step 500

    500

    #4EA03D

    oklch(63.2% 0.158 140.4)

  7. Step 600

    600 (this color)

    #338F1D

    oklch(57.3% 0.17 140.4)

  8. Step 700

    700

    #1E7502

    oklch(49.2% 0.159 140.4)

  9. Step 800

    800

    #1C5F0B

    oklch(42.7% 0.131 140.5)

  10. Step 900

    900

    #1E4E14

    oklch(37.7% 0.102 140.5)

  11. Step 950

    950

    #132E0D

    oklch(27.1% 0.065 140.1)

Export this scale for Tailwind in the Tailwind colors tool

#338F1D 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)#9381000.115
Deuteranopia (no green cones)#887A2A0.116
Tritanopia (no blue cones)#258A7A0.115
Achromatopsia (no color)#7D7D7D0.171

Harmonies

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

Complementary

The opposite hue (180°).

  • #338F1D

    #338F1D

    oklch(57.3% 0.17 140.4)

  • #A350B5

    #A350B5

    oklch(57.3% 0.17 320.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338F1D

    #338F1D

    oklch(57.3% 0.17 140.4)

  • #7D7E00

    #7D7E00

    oklch(57.3% 0.125 110.3)

  • #008D6F

    #008D6F

    oklch(57.3% 0.112 170.9)

Open the analogous palette in the generator

Split complementary

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

  • #338F1D

    #338F1D

    oklch(57.3% 0.17 140.4)

  • #7A60D4

    #7A60D4

    oklch(57.2% 0.171 290.3)

  • #BE4486

    #BE4486

    oklch(57.4% 0.17 350.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338F1D

    #338F1D

    oklch(57.3% 0.17 140.4)

  • #3774DB

    #3774DB

    oklch(57.4% 0.17 260.2)

  • #C9424C

    #C9424C

    oklch(57.3% 0.171 20.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338F1D

    #338F1D

    oklch(57.3% 0.17 140.4)

  • #0084AF

    #0084AF

    oklch(57.4% 0.115 230.1)

  • #A350B5

    #A350B5

    oklch(57.3% 0.17 320.2)

  • #BB5800

    #BB5800

    oklch(57.3% 0.15 50.7)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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