#402E4C

Closest named color: Space Cadet (#2B2D42). oklch(33.5% 0.056 311.1), rgb(64, 46, 76).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.056)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.71:1
White text12.25:1

Values

HEX#402E4C
RGBrgb(64, 46, 76)
HSLhsl(276, 25%, 24%)
OKLCHoklch(33.5% 0.056 311.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 #402E4C 12.25:1 AAA Lc -101.4 Preferred for body text
Black text on #402E4C 1.71:1 Fails Lc 0.0 Not readable
#402E4C text on white 12.25:1 AAA Lc 97.9 Preferred for body text
#402E4C 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

    #F7F4F8

    oklch(97.1% 0.006 317.8)

  2. Step 100

    100

    #ECE8F0

    oklch(93.6% 0.011 308.3)

  3. Step 200

    200

    #DED5E5

    oklch(88.5% 0.024 310.7)

  4. Step 300

    300

    #C9B9D5

    oklch(80.8% 0.043 310.8)

  5. Step 400

    400

    #AE95C0

    oklch(70.7% 0.067 310.9)

  6. Step 500

    500

    #9A7AB0

    oklch(63% 0.087 311)

  7. Step 600

    600

    #85639C

    oklch(55.6% 0.094 310.9)

  8. Step 700

    700

    #715285

    oklch(49.2% 0.087 311.3)

  9. Step 800

    800

    #5C436C

    oklch(42.7% 0.073 311.5)

  10. Step 900

    900 (this color)

    #402E4C

    oklch(33.5% 0.056 311.1)

  11. Step 950

    950

    #2C2133

    oklch(26.9% 0.036 311.8)

Export this scale for Tailwind in the Tailwind colors tool

#402E4C 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)#29344D0.042
Deuteranopia (no green cones)#2D354B0.038
Tritanopia (no blue cones)#3F32390.040
Achromatopsia (no color)#3535350.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E4C

    #402E4C

    oklch(33.5% 0.056 311.1)

  • #2C3D1D

    #2C3D1D

    oklch(33.6% 0.057 131.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E4C

    #402E4C

    oklch(33.5% 0.056 311.1)

  • #323353

    #323353

    oklch(33.6% 0.056 281.6)

  • #4A2B3F

    #4A2B3F

    oklch(33.5% 0.055 341.4)

Open the analogous palette in the generator

Split complementary

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

  • #402E4C

    #402E4C

    oklch(33.5% 0.056 311.1)

  • #3D3711

    #3D3711

    oklch(33.4% 0.056 100.3)

  • #18402D

    #18402D

    oklch(33.7% 0.057 160.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E4C

    #402E4C

    oklch(33.5% 0.056 311.1)

  • #493112

    #493112

    oklch(33.5% 0.057 70.5)

  • #03403E

    #03403E

    oklch(33.6% 0.056 191.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E4C

    #402E4C

    oklch(33.5% 0.056 311.1)

  • #4F2C1F

    #4F2C1F

    oklch(33.5% 0.057 41)

  • #2C3D1D

    #2C3D1D

    oklch(33.6% 0.057 131.7)

  • #0A3D4B

    #0A3D4B

    oklch(33.5% 0.056 221.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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