#402E39

Closest named color: Onyx (#343A40). oklch(32.6% 0.032 341.8), rgb(64, 46, 57).

Aa

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

About this color

#402E39 is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.032 and its hue 342°. Its hue sits on the warm side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.040 away. White text reads best on it, at 12.59:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.032)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.66:1
White text12.59:1

Values

HEX#402E39
RGBrgb(64, 46, 57)
HSLhsl(323, 16%, 22%)
OKLCHoklch(32.6% 0.032 341.8)

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 #402E39 12.59:1 AAA Lc -101.9 Preferred for body text
Black text on #402E39 1.66:1 Fails Lc 0.0 Not readable
#402E39 text on white 12.59:1 AAA Lc 98.5 Preferred for body text
#402E39 text on black 1.66:1 Fails Lc 0.0 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 900.

  1. Step 50

    50

    #F7F5F6

    oklch(97.2% 0.002 345.2)

  2. Step 100

    100

    #EDE8EB

    oklch(93.6% 0.007 340.4)

  3. Step 200

    200

    #E0D6DB

    oklch(88.6% 0.013 345.5)

  4. Step 300

    300

    #CCBBC5

    oklch(80.9% 0.024 341.4)

  5. Step 400

    400

    #B298A7

    oklch(70.7% 0.037 342.5)

  6. Step 500

    500

    #9F7E92

    oklch(63.1% 0.049 341.6)

  7. Step 600

    600

    #8A677C

    oklch(55.6% 0.054 342.3)

  8. Step 700

    700

    #755669

    oklch(49.2% 0.049 341.7)

  9. Step 800

    800

    #5F4655

    oklch(42.6% 0.041 342.3)

  10. Step 900

    900 (this color)

    #402E39

    oklch(32.6% 0.032 341.8)

  11. Step 950

    950

    #2E2329

    oklch(27.1% 0.02 344.5)

Export this scale for Tailwind in the Tailwind colors tool

#402E39 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)#2F32390.032
Deuteranopia (no green cones)#3334380.030
Tritanopia (no blue cones)#422E320.013
Achromatopsia (no color)#3333330.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E39

    #402E39

    oklch(32.6% 0.032 341.8)

  • #253A2F

    #253A2F

    oklch(32.7% 0.033 161)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E39

    #402E39

    oklch(32.6% 0.032 341.8)

  • #3A3040

    #3A3040

    oklch(32.7% 0.031 312.7)

  • #432E30

    #432E30

    oklch(32.7% 0.031 12.6)

Open the analogous palette in the generator

Split complementary

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

  • #402E39

    #402E39

    oklch(32.6% 0.032 341.8)

  • #2E3827

    #2E3827

    oklch(32.6% 0.032 132.8)

  • #203A38

    #203A38

    oklch(32.7% 0.032 189.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E39

    #402E39

    oklch(32.6% 0.032 341.8)

  • #383522

    #383522

    oklch(32.6% 0.032 100.3)

  • #213840

    #213840

    oklch(32.5% 0.032 222)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E39

    #402E39

    oklch(32.6% 0.032 341.8)

  • #3F3222

    #3F3222

    oklch(32.7% 0.032 72.1)

  • #253A2F

    #253A2F

    oklch(32.7% 0.033 161)

  • #283644

    #283644

    oklch(32.7% 0.031 248.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402E39 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.