#402E44

Closest named color: Space Cadet (#2B2D42). oklch(33.1% 0.045 320.1), rgb(64, 46, 68).

Aa

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

About this color

#402E44 is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.045 and its hue 320°. 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.40:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.045)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.69:1
White text12.40:1

Values

HEX#402E44
RGBrgb(64, 46, 68)
HSLhsl(289, 19%, 22%)
OKLCHoklch(33.1% 0.045 320.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 #402E44 12.40:1 AAA Lc -101.6 Preferred for body text
Black text on #402E44 1.69:1 Fails Lc 0.0 Not readable
#402E44 text on white 12.40:1 AAA Lc 98.2 Preferred for body text
#402E44 text on black 1.69: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

    #B096B6

    oklch(70.7% 0.054 319.9)

  6. Step 500

    500

    #9C7CA4

    oklch(63.1% 0.069 319.5)

  7. Step 600

    600

    #87658F

    oklch(55.6% 0.075 319.8)

  8. Step 700

    700

    #725479

    oklch(49.1% 0.068 319.9)

  9. Step 800

    800

    #5D4563

    oklch(42.8% 0.057 319.5)

  10. Step 900

    900 (this color)

    #402E44

    oklch(33.1% 0.045 320.1)

  11. Step 950

    950

    #2D222F

    oklch(27% 0.028 321.1)

Export this scale for Tailwind in the Tailwind colors tool

#402E44 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)#2C33450.037
Deuteranopia (no green cones)#3035430.035
Tritanopia (no blue cones)#4030360.028
Achromatopsia (no color)#3434340.045

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E44

    #402E44

    oklch(33.1% 0.045 320.1)

  • #293B25

    #293B25

    oklch(33% 0.044 139.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E44

    #402E44

    oklch(33.1% 0.045 320.1)

  • #35324B

    #35324B

    oklch(33.2% 0.044 289.3)

  • #472C39

    #472C39

    oklch(33.1% 0.045 349.5)

Open the analogous palette in the generator

Split complementary

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

  • #402E44

    #402E44

    oklch(33.1% 0.045 320.1)

  • #37381B

    #37381B

    oklch(33.2% 0.046 110.4)

  • #1B3D32

    #1B3D32

    oklch(33.1% 0.045 170.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E44

    #402E44

    oklch(33.1% 0.045 320.1)

  • #423319

    #423319

    oklch(33.1% 0.046 79.9)

  • #143D3F

    #143D3F

    oklch(33.2% 0.045 199.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E44

    #402E44

    oklch(33.1% 0.045 320.1)

  • #482F20

    #482F20

    oklch(33.1% 0.044 51.6)

  • #293B25

    #293B25

    oklch(33% 0.044 139.9)

  • #1B3A48

    #1B3A48

    oklch(33.1% 0.044 229.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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