#405F42

Closest named color: Pine (#2B5D34). oklch(45.3% 0.059 146.1), rgb(64, 95, 66).

Aa

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

About this color

#405F42 is a medium-dark, muted green. In OKLCH its lightness is 45%, its chroma 0.059 and its hue 146°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Pine (#2B5D34), ΔE 0.034 away. White text reads best on it, at 7.15:1.

Hue familyGreens
Lightnessmedium-dark (45%)
Chromamuted (0.059)
Temperaturein between
Nearest namePine (#2B5D34)
Black text2.93:1
White text7.15:1

Values

HEX#405F42
RGBrgb(64, 95, 66)
HSLhsl(124, 19%, 31%)
OKLCHoklch(45.3% 0.059 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 #405F42 7.15:1 AAA Lc -89.7 Fine for body text
Black text on #405F42 2.93:1 Fails Lc 19.2 Dividers and decoration only
#405F42 text on white 7.15:1 AAA Lc 84.8 Fine for body text
#405F42 text on black 2.93:1 Fails Lc -17.2 Dividers and decoration only

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

    #D1DDD2

    oklch(88.5% 0.02 147.8)

  4. Step 300

    300

    #B3C7B4

    oklch(80.9% 0.034 146.6)

  5. Step 400

    400

    #8BAA8C

    oklch(70.6% 0.055 145.8)

  6. Step 500

    500

    #6E9570

    oklch(63.1% 0.07 146)

  7. Step 600

    600

    #558058

    oklch(55.7% 0.078 146.1)

  8. Step 700

    700

    #456C48

    oklch(49.2% 0.072 146.2)

  9. Step 800

    800 (this color)

    #405F42

    oklch(45.3% 0.059 146.1)

  10. Step 900

    900

    #314833

    oklch(37.6% 0.046 146.8)

  11. Step 950

    950

    #1D2A1E

    oklch(26.9% 0.028 146.7)

Export this scale for Tailwind in the Tailwind colors tool

#405F42 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)#605A400.047
Deuteranopia (no green cones)#5B56440.047
Tritanopia (no blue cones)#3C5D570.036
Achromatopsia (no color)#5858580.060

Harmonies

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

Complementary

The opposite hue (180°).

  • #405F42

    #405F42

    oklch(45.3% 0.059 146.1)

  • #674A68

    #674A68

    oklch(45.2% 0.06 325.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405F42

    #405F42

    oklch(45.3% 0.059 146.1)

  • #545A33

    #545A33

    oklch(45.2% 0.059 116)

  • #2D6155

    #2D6155

    oklch(45.3% 0.06 176.4)

Open the analogous palette in the generator

Split complementary

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

  • #405F42

    #405F42

    oklch(45.3% 0.059 146.1)

  • #594F73

    #594F73

    oklch(45.2% 0.059 296.7)

  • #714857

    #714857

    oklch(45.3% 0.06 356.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405F42

    #405F42

    oklch(45.3% 0.059 146.1)

  • #465577

    #465577

    oklch(45.1% 0.059 265.8)

  • #744945

    #744945

    oklch(45.3% 0.06 25.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405F42

    #405F42

    oklch(45.3% 0.059 146.1)

  • #335B73

    #335B73

    oklch(45.2% 0.06 236.5)

  • #674A68

    #674A68

    oklch(45.2% 0.06 325.4)

  • #704D35

    #704D35

    oklch(45.3% 0.06 55)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #405F42 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.