#400D4B

Closest named color: Eggplant Purple (#430541). oklch(28.1% 0.114 319.8), rgb(64, 13, 75).

Aa

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

About this color

#400D4B is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.114 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant Purple (#430541), ΔE 0.022 away. White text reads best on it, at 15.24:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.114)
Temperaturein between
Nearest nameEggplant Purple (#430541)
Black text1.37:1
White text15.24:1

Values

HEX#400D4B
RGBrgb(64, 13, 75)
HSLhsl(289, 70%, 17%)
OKLCHoklch(28.1% 0.114 319.8)

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 #400D4B 15.24:1 AAA Lc -104.3 Preferred for body text
Black text on #400D4B 1.37:1 Fails Lc 0.0 Not readable
#400D4B text on white 15.24:1 AAA Lc 101.5 Preferred for body text
#400D4B text on black 1.37: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

    #FBF2FD

    oklch(97.1% 0.017 320.1)

  2. Step 100

    100

    #F6E2FB

    oklch(93.6% 0.04 319.5)

  3. Step 200

    200

    #F0CAF9

    oklch(88.6% 0.075 319.8)

  4. Step 300

    300

    #E7A3F7

    oklch(80.9% 0.136 319.8)

  5. Step 400

    400

    #D96AF3

    oklch(70.7% 0.216 319.7)

  6. Step 500

    500

    #CD2DEE

    oklch(63.1% 0.277 319.7)

  7. Step 600

    600

    #B200D1

    oklch(55.7% 0.267 319.8)

  8. Step 700

    700

    #9600B1

    oklch(49.1% 0.236 319.7)

  9. Step 800

    800

    #7C0092

    oklch(42.7% 0.205 319.9)

  10. Step 900

    900

    #68017B

    oklch(37.8% 0.18 319.8)

  11. Step 950

    950 (this color)

    #400D4B

    oklch(28.1% 0.114 319.8)

Export this scale for Tailwind in the Tailwind colors tool

#400D4B 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)#00224D0.111
Deuteranopia (no green cones)#12274A0.099
Tritanopia (no blue cones)#401A2B0.071
Achromatopsia (no color)#2525250.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #400D4B

    #400D4B

    oklch(28.1% 0.114 319.8)

  • #0A3300

    #0A3300

    oklch(28.2% 0.09 139.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #400D4B

    #400D4B

    oklch(28.1% 0.114 319.8)

  • #2B185C

    #2B185C

    oklch(28.1% 0.114 289.8)

  • #4E0231

    #4E0231

    oklch(28.1% 0.114 349.9)

Open the analogous palette in the generator

Split complementary

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

  • #400D4B

    #400D4B

    oklch(28.1% 0.114 319.8)

  • #2B2B00

    #2B2B00

    oklch(28% 0.061 109.8)

  • #003225

    #003225

    oklch(28.2% 0.056 169.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #400D4B

    #400D4B

    oklch(28.1% 0.114 319.8)

  • #382500

    #382500

    oklch(28.1% 0.058 79.5)

  • #003032

    #003032

    oklch(28.1% 0.048 199.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #400D4B

    #400D4B

    oklch(28.1% 0.114 319.8)

  • #451B00

    #451B00

    oklch(28.1% 0.075 49.3)

  • #0A3300

    #0A3300

    oklch(28.2% 0.09 139.7)

  • #002E3F

    #002E3F

    oklch(28.2% 0.056 229.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #400D4B 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.