#405042

Closest named color: Dark Slate Gray (#2F4F4F). oklch(41.3% 0.031 148.5), rgb(64, 80, 66).

Aa

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

About this color

#405042 is a dark, muted green. In OKLCH its lightness is 41%, its chroma 0.031 and its hue 148°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.030 away. White text reads best on it, at 8.59:1.

Hue familyGreens
Lightnessdark (41%)
Chromamuted (0.031)
Temperaturein between
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.44:1
White text8.59:1

Values

HEX#405042
RGBrgb(64, 80, 66)
HSLhsl(128, 11%, 28%)
OKLCHoklch(41.3% 0.031 148.5)

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 #405042 8.59:1 AAA Lc -94.0 Preferred for body text
Black text on #405042 2.44:1 Fails Lc 14.5 Not readable
#405042 text on white 8.59:1 AAA Lc 89.5 Fine for body text
#405042 text on black 2.44:1 Fails Lc -12.7 Not readable

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

    #F4F6F4

    oklch(97.1% 0.003 145.5)

  2. Step 100

    100

    #E8EBE8

    oklch(93.7% 0.005 145.5)

  3. Step 200

    200

    #D5DBD5

    oklch(88.5% 0.01 145.5)

  4. Step 300

    300

    #B9C4BA

    oklch(80.9% 0.018 148.1)

  5. Step 400

    400

    #95A697

    oklch(70.7% 0.029 148.7)

  6. Step 500

    500

    #7B907D

    oklch(63.1% 0.037 147.8)

  7. Step 600

    600

    #647A67

    oklch(55.6% 0.039 148.9)

  8. Step 700

    700

    #536755

    oklch(49.2% 0.037 147.7)

  9. Step 800

    800 (this color)

    #405042

    oklch(41.3% 0.031 148.5)

  10. Step 900

    900

    #39453B

    oklch(37.6% 0.023 150)

  11. Step 950

    950

    #222922

    oklch(27.2% 0.016 145.1)

Export this scale for Tailwind in the Tailwind colors tool

#405042 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)#504D410.025
Deuteranopia (no green cones)#4E4B430.026
Tritanopia (no blue cones)#3E4F4C0.018
Achromatopsia (no color)#4C4C4C0.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #405042

    #405042

    oklch(41.3% 0.031 148.5)

  • #554554

    #554554

    oklch(41.3% 0.032 328.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405042

    #405042

    oklch(41.3% 0.031 148.5)

  • #494E3B

    #494E3B

    oklch(41.4% 0.031 119.7)

  • #39514B

    #39514B

    oklch(41.3% 0.031 177.5)

Open the analogous palette in the generator

Split complementary

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

  • #405042

    #405042

    oklch(41.3% 0.031 148.5)

  • #4D485A

    #4D485A

    oklch(41.4% 0.03 297.8)

  • #5A444B

    #5A444B

    oklch(41.3% 0.032 357.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405042

    #405042

    oklch(41.3% 0.031 148.5)

  • #444B5C

    #444B5C

    oklch(41.3% 0.03 267.5)

  • #5B4542

    #5B4542

    oklch(41.3% 0.031 27.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405042

    #405042

    oklch(41.3% 0.031 148.5)

  • #3C4E5A

    #3C4E5A

    oklch(41.3% 0.03 237.7)

  • #554554

    #554554

    oklch(41.3% 0.032 328.1)

  • #58473B

    #58473B

    oklch(41.2% 0.03 57)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #405042 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.