#402F45

Closest named color: Space Cadet (#2B2D42). oklch(33.4% 0.044 318.4), rgb(64, 47, 69).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.044)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.71:1
White text12.27:1

Values

HEX#402F45
RGBrgb(64, 47, 69)
HSLhsl(286, 19%, 23%)
OKLCHoklch(33.4% 0.044 318.4)

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 #402F45 12.27:1 AAA Lc -101.4 Preferred for body text
Black text on #402F45 1.71:1 Fails Lc 0.0 Not readable
#402F45 text on white 12.27:1 AAA Lc 98.0 Preferred for body text
#402F45 text on black 1.71: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

    #DED5E1

    oklch(88.4% 0.019 317.7)

  4. Step 300

    300

    #CABACF

    oklch(80.9% 0.034 318.1)

  5. Step 400

    400

    #AF97B6

    oklch(70.8% 0.052 318.5)

  6. Step 500

    500

    #9B7DA4

    oklch(63.1% 0.067 318.3)

  7. Step 600

    600

    #86668F

    oklch(55.7% 0.072 318.7)

  8. Step 700

    700

    #71547A

    oklch(49% 0.069 318)

  9. Step 800

    800

    #5C4563

    oklch(42.7% 0.056 318.2)

  10. Step 900

    900 (this color)

    #402F45

    oklch(33.4% 0.044 318.4)

  11. Step 950

    950

    #2C222F

    oklch(26.9% 0.028 318.3)

Export this scale for Tailwind in the Tailwind colors tool

#402F45 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)#2C34460.037
Deuteranopia (no green cones)#3036440.035
Tritanopia (no blue cones)#4031370.028
Achromatopsia (no color)#3535350.044

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F45

    #402F45

    oklch(33.4% 0.044 318.4)

  • #2B3C25

    #2B3C25

    oklch(33.4% 0.045 137.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F45

    #402F45

    oklch(33.4% 0.044 318.4)

  • #35334C

    #35334C

    oklch(33.4% 0.044 287.5)

  • #472D3A

    #472D3A

    oklch(33.3% 0.043 348.3)

Open the analogous palette in the generator

Split complementary

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

  • #402F45

    #402F45

    oklch(33.4% 0.044 318.4)

  • #38381C

    #38381C

    oklch(33.3% 0.044 108.6)

  • #1D3E32

    #1D3E32

    oklch(33.5% 0.045 167.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F45

    #402F45

    oklch(33.4% 0.044 318.4)

  • #43341B

    #43341B

    oklch(33.5% 0.044 79.1)

  • #163D3F

    #163D3F

    oklch(33.3% 0.044 199.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F45

    #402F45

    oklch(33.4% 0.044 318.4)

  • #492F22

    #492F22

    oklch(33.3% 0.044 47.3)

  • #2B3C25

    #2B3C25

    oklch(33.4% 0.045 137.8)

  • #1B3B48

    #1B3B48

    oklch(33.4% 0.044 226.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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