#402C44

Closest named color: Space Cadet (#2B2D42). oklch(32.7% 0.049 320.7), rgb(64, 44, 68).

Aa

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

About this color

#402C44 is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.049 and its hue 321°. 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.63:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.049)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.66:1
White text12.63:1

Values

HEX#402C44
RGBrgb(64, 44, 68)
HSLhsl(290, 21%, 22%)
OKLCHoklch(32.7% 0.049 320.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 #402C44 12.63:1 AAA Lc -102.0 Preferred for body text
Black text on #402C44 1.66:1 Fails Lc 0.0 Not readable
#402C44 text on white 12.63:1 AAA Lc 98.6 Preferred for body text
#402C44 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

    #F7F4F7

    oklch(97% 0.005 325.6)

  2. Step 100

    100

    #EDE8EE

    oklch(93.7% 0.01 320.5)

  3. Step 200

    200

    #E0D5E2

    oklch(88.6% 0.021 321)

  4. Step 300

    300

    #CCB9D0

    oklch(80.9% 0.038 320.4)

  5. Step 400

    400

    #B295B7

    oklch(70.7% 0.059 321.3)

  6. Step 500

    500

    #9F7BA6

    oklch(63.2% 0.075 320.8)

  7. Step 600

    600

    #896391

    oklch(55.6% 0.082 320.5)

  8. Step 700

    700

    #74527B

    oklch(49% 0.076 320.6)

  9. Step 800

    800

    #5F4364

    oklch(42.7% 0.064 321.3)

  10. Step 900

    900 (this color)

    #402C44

    oklch(32.7% 0.049 320.7)

  11. Step 950

    950

    #2D2130

    oklch(26.8% 0.032 319.5)

Export this scale for Tailwind in the Tailwind colors tool

#402C44 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)#2932450.043
Deuteranopia (no green cones)#2E34430.039
Tritanopia (no blue cones)#412F350.031
Achromatopsia (no color)#3333330.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C44

    #402C44

    oklch(32.7% 0.049 320.7)

  • #263B23

    #263B23

    oklch(32.7% 0.049 141.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C44

    #402C44

    oklch(32.7% 0.049 320.7)

  • #34304C

    #34304C

    oklch(32.6% 0.049 289.9)

  • #482A38

    #482A38

    oklch(32.8% 0.049 350.7)

Open the analogous palette in the generator

Split complementary

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

  • #402C44

    #402C44

    oklch(32.7% 0.049 320.7)

  • #363717

    #363717

    oklch(32.7% 0.05 110.5)

  • #163D31

    #163D31

    oklch(32.8% 0.049 170.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C44

    #402C44

    oklch(32.7% 0.049 320.7)

  • #423215

    #423215

    oklch(32.8% 0.049 80.5)

  • #0C3C3F

    #0C3C3F

    oklch(32.7% 0.049 201.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C44

    #402C44

    oklch(32.7% 0.049 320.7)

  • #492D1D

    #492D1D

    oklch(32.7% 0.049 50.1)

  • #263B23

    #263B23

    oklch(32.7% 0.049 141.4)

  • #163949

    #163949

    oklch(32.7% 0.049 230.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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