#402F49

Closest named color: Space Cadet (#2B2D42). oklch(33.6% 0.05 313.5), rgb(64, 47, 73).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.050)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.72:1
White text12.20:1

Values

HEX#402F49
RGBrgb(64, 47, 73)
HSLhsl(279, 22%, 24%)
OKLCHoklch(33.6% 0.05 313.5)

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 #402F49 12.20:1 AAA Lc -101.3 Preferred for body text
Black text on #402F49 1.72:1 Fails Lc 0.0 Not readable
#402F49 text on white 12.20:1 AAA Lc 97.8 Preferred for body text
#402F49 text on black 1.72: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

    #ECE8EF

    oklch(93.6% 0.01 311.2)

  3. Step 200

    200

    #DED5E3

    oklch(88.4% 0.021 313.8)

  4. Step 300

    300

    #C9BAD2

    oklch(80.9% 0.037 313)

  5. Step 400

    400

    #AE96BB

    oklch(70.7% 0.059 313.7)

  6. Step 500

    500

    #9A7CAA

    oklch(63.1% 0.076 313.6)

  7. Step 600

    600

    #856596

    oklch(55.7% 0.083 313.5)

  8. Step 700

    700

    #705380

    oklch(49% 0.078 313.1)

  9. Step 800

    800

    #5C4468

    oklch(42.7% 0.065 314.1)

  10. Step 900

    900 (this color)

    #402F49

    oklch(33.6% 0.05 313.5)

  11. Step 950

    950

    #2C2231

    oklch(27% 0.031 314.3)

Export this scale for Tailwind in the Tailwind colors tool

#402F49 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)#2B344A0.038
Deuteranopia (no green cones)#2F36480.036
Tritanopia (no blue cones)#3F32380.035
Achromatopsia (no color)#3535350.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F49

    #402F49

    oklch(33.6% 0.05 313.5)

  • #2C3C21

    #2C3C21

    oklch(33.4% 0.05 133.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F49

    #402F49

    oklch(33.6% 0.05 313.5)

  • #333350

    #333350

    oklch(33.5% 0.051 283.3)

  • #492C3D

    #492C3D

    oklch(33.5% 0.05 344.1)

Open the analogous palette in the generator

Split complementary

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

  • #402F49

    #402F49

    oklch(33.6% 0.05 313.5)

  • #3B3818

    #3B3818

    oklch(33.6% 0.049 103.9)

  • #1B3F30

    #1B3F30

    oklch(33.6% 0.05 164.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F49

    #402F49

    oklch(33.6% 0.05 313.5)

  • #463318

    #463318

    oklch(33.6% 0.049 74.4)

  • #0F3F3E

    #0F3F3E

    oklch(33.6% 0.05 193)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F49

    #402F49

    oklch(33.6% 0.05 313.5)

  • #4C2E21

    #4C2E21

    oklch(33.5% 0.05 44.1)

  • #2C3C21

    #2C3C21

    oklch(33.4% 0.05 133.4)

  • #153C4A

    #153C4A

    oklch(33.5% 0.05 225)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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