#402249

Closest named color: Space Cadet (#2B2D42). oklch(31% 0.077 318), rgb(64, 34, 73).

Aa

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

About this color

#402249 is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.077 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.053 away. White text reads best on it, at 13.60:1.

Hue familyPurples
Lightnessdark (31%)
Chromamoderately saturated (0.077)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.54:1
White text13.60:1

Values

HEX#402249
RGBrgb(64, 34, 73)
HSLhsl(286, 36%, 21%)
OKLCHoklch(31% 0.077 318)

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 #402249 13.60:1 AAA Lc -103.1 Preferred for body text
Black text on #402249 1.54:1 Fails Lc 0.0 Not readable
#402249 text on white 13.60:1 AAA Lc 99.9 Preferred for body text
#402249 text on black 1.54: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 950.

  1. Step 50

    50

    #F9F3FB

    oklch(97.1% 0.012 317.7)

  2. Step 100

    100

    #F1E5F6

    oklch(93.6% 0.026 316.1)

  3. Step 200

    200

    #E8CFEF

    oklch(88.5% 0.051 318.8)

  4. Step 300

    300

    #DAAEE7

    oklch(80.9% 0.092 318.4)

  5. Step 400

    400

    #C681DB

    oklch(70.7% 0.146 318)

  6. Step 500

    500

    #B75ED1

    oklch(63.2% 0.186 318.1)

  7. Step 600

    600

    #A23FBE

    oklch(55.6% 0.202 318)

  8. Step 700

    700

    #8A2FA4

    oklch(49% 0.189 317.7)

  9. Step 800

    800

    #712985

    oklch(42.8% 0.157 318.1)

  10. Step 900

    900

    #5B276A

    oklch(37.6% 0.121 318.1)

  11. Step 950

    950 (this color)

    #402249

    oklch(31% 0.077 318)

Export this scale for Tailwind in the Tailwind colors tool

#402249 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)#1B2C4A0.068
Deuteranopia (no green cones)#242F480.061
Tritanopia (no blue cones)#4027320.048
Achromatopsia (no color)#2E2E2E0.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #402249

    #402249

    oklch(31% 0.077 318)

  • #1B390F

    #1B390F

    oklch(31% 0.076 137.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402249

    #402249

    oklch(31% 0.077 318)

  • #2F2854

    #2F2854

    oklch(30.9% 0.077 288.4)

  • #4B1E37

    #4B1E37

    oklch(31% 0.076 348)

Open the analogous palette in the generator

Split complementary

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

  • #402249

    #402249

    oklch(31% 0.077 318)

  • #343200

    #343200

    oklch(30.9% 0.066 107.3)

  • #003A2A

    #003A2A

    oklch(30.9% 0.063 168)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402249

    #402249

    oklch(31% 0.077 318)

  • #422B00

    #422B00

    oklch(30.9% 0.065 77.3)

  • #00383A

    #00383A

    oklch(30.9% 0.053 198.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402249

    #402249

    oklch(31% 0.077 318)

  • #4E2206

    #4E2206

    oklch(31% 0.076 48.6)

  • #1B390F

    #1B390F

    oklch(31% 0.076 137.9)

  • #003648

    #003648

    oklch(31.1% 0.06 227.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402249 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.