#402D43

Closest named color: Space Cadet (#2B2D42). oklch(32.8% 0.046 321.8), rgb(64, 45, 67).

Aa

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

About this color

#402D43 is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.046 and its hue 322°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.039 away. White text reads best on it, at 12.54:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.046)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.67:1
White text12.54:1

Values

HEX#402D43
RGBrgb(64, 45, 67)
HSLhsl(292, 20%, 22%)
OKLCHoklch(32.8% 0.046 321.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 #402D43 12.54:1 AAA Lc -101.8 Preferred for body text
Black text on #402D43 1.67:1 Fails Lc 0.0 Not readable
#402D43 text on white 12.54:1 AAA Lc 98.4 Preferred for body text
#402D43 text on black 1.67: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

    #F7F4F7

    oklch(97% 0.005 325.6)

  2. Step 100

    100

    #EDE8EE

    oklch(93.7% 0.01 320.5)

  3. Step 200

    200

    #DFD5E1

    oklch(88.5% 0.019 320.6)

  4. Step 300

    300

    #CBBACE

    oklch(80.9% 0.033 321.2)

  5. Step 400

    400

    #B196B5

    oklch(70.7% 0.054 321.9)

  6. Step 500

    500

    #9E7CA3

    oklch(63.2% 0.069 322.1)

  7. Step 600

    600

    #88648E

    oklch(55.5% 0.076 321.6)

  8. Step 700

    700

    #745379

    oklch(49.1% 0.071 322)

  9. Step 800

    800

    #5E4462

    oklch(42.6% 0.058 321.9)

  10. Step 900

    900 (this color)

    #402D43

    oklch(32.8% 0.046 321.8)

  11. Step 950

    950

    #2D222F

    oklch(27% 0.028 321.1)

Export this scale for Tailwind in the Tailwind colors tool

#402D43 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)#2B32440.039
Deuteranopia (no green cones)#2F34420.036
Tritanopia (no blue cones)#412F350.028
Achromatopsia (no color)#3434340.046

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D43

    #402D43

    oklch(32.8% 0.046 321.8)

  • #273B25

    #273B25

    oklch(32.8% 0.046 142.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D43

    #402D43

    oklch(32.8% 0.046 321.8)

  • #35314B

    #35314B

    oklch(32.9% 0.046 290.7)

  • #472B37

    #472B37

    oklch(32.8% 0.045 352.6)

Open the analogous palette in the generator

Split complementary

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

  • #402D43

    #402D43

    oklch(32.8% 0.046 321.8)

  • #35371B

    #35371B

    oklch(32.7% 0.045 112.2)

  • #193D32

    #193D32

    oklch(33% 0.046 170.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D43

    #402D43

    oklch(32.8% 0.046 321.8)

  • #413318

    #413318

    oklch(33% 0.046 82.4)

  • #123C3F

    #123C3F

    oklch(32.9% 0.046 201.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D43

    #402D43

    oklch(32.8% 0.046 321.8)

  • #482E1F

    #482E1F

    oklch(32.9% 0.046 50.6)

  • #273B25

    #273B25

    oklch(32.8% 0.046 142.3)

  • #1A3948

    #1A3948

    oklch(32.8% 0.045 231.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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