#338A6D

Closest named color: Viridian (#1E9167). oklch(57.3% 0.095 167.7), rgb(51, 138, 109).

Aa

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

About this color

#338A6D is a medium-dark, moderately saturated green. In OKLCH its lightness is 57%, its chroma 0.095 and its hue 168°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Viridian (#1E9167), ΔE 0.027 away. Black text reads best on it, at 4.99:1.

Hue familyGreens
Lightnessmedium-dark (57%)
Chromamoderately saturated (0.095)
Temperaturein between
Nearest nameViridian (#1E9167)
Black text4.99:1
White text4.20:1

Values

HEX#338A6D
RGBrgb(51, 138, 109)
HSLhsl(160, 46%, 37%)
OKLCHoklch(57.3% 0.095 167.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 #338A6D 4.20:1 AA large text Lc -74.2 Content text, not long reading
Black text on #338A6D 4.99:1 AA Lc 35.4 Non-text elements, placeholder text
#338A6D text on white 4.20:1 AA large text Lc 68.7 Content text, not long reading
#338A6D text on black 4.99:1 AA Lc -32.9 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

    #F2F7F5

    oklch(97.2% 0.006 170.4)

  2. Step 100

    100

    #E2EDE8

    oklch(93.6% 0.013 167.2)

  3. Step 200

    200

    #CBDED6

    oklch(88.4% 0.023 168.7)

  4. Step 300

    300

    #A7CABB

    oklch(80.9% 0.043 167.4)

  5. Step 400

    400

    #76AF98

    oklch(70.8% 0.069 167.2)

  6. Step 500

    500

    #4E9B7F

    oklch(63.2% 0.088 167.5)

  7. Step 600

    600 (this color)

    #338A6D

    oklch(57.3% 0.095 167.7)

  8. Step 700

    700

    #1E7057

    oklch(49% 0.087 168.3)

  9. Step 800

    800

    #1C5C47

    oklch(42.8% 0.074 167.5)

  10. Step 900

    900

    #1E4B3C

    oklch(37.6% 0.056 168.7)

  11. Step 950

    950

    #132C23

    oklch(27% 0.036 168.1)

Export this scale for Tailwind in the Tailwind colors tool

#338A6D 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)#87816C0.096
Deuteranopia (no green cones)#7A786F0.091
Tritanopia (no blue cones)#008B820.033
Achromatopsia (no color)#7C7C7C0.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #338A6D

    #338A6D

    oklch(57.3% 0.095 167.7)

  • #A16082

    #A16082

    oklch(57.2% 0.095 347.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #338A6D

    #338A6D

    oklch(57.3% 0.095 167.7)

  • #5C854D

    #5C854D

    oklch(57.2% 0.094 137.7)

  • #0E898C

    #0E898C

    oklch(57.3% 0.095 197.6)

Open the analogous palette in the generator

Split complementary

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

  • #338A6D

    #338A6D

    oklch(57.3% 0.095 167.7)

  • #8F669D

    #8F669D

    oklch(57.3% 0.095 317.3)

  • #A96063

    #A96063

    oklch(57.3% 0.095 17.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #338A6D

    #338A6D

    oklch(57.3% 0.095 167.7)

  • #756FAD

    #756FAD

    oklch(57.3% 0.094 287.5)

  • #A66645

    #A66645

    oklch(57.3% 0.095 47.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #338A6D

    #338A6D

    oklch(57.3% 0.095 167.7)

  • #5479B0

    #5479B0

    oklch(57.2% 0.095 258.1)

  • #A16082

    #A16082

    oklch(57.2% 0.095 347.9)

  • #977030

    #977030

    oklch(57.2% 0.095 77.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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