#401D68

Closest named color: Royal Purple (#4B006E). oklch(32.4% 0.125 301), rgb(64, 29, 104).

Aa

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

About this color

#401D68 is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.125 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.043 away. White text reads best on it, at 13.17:1.

Hue familyPurples
Lightnessdark (32%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.59:1
White text13.17:1

Values

HEX#401D68
RGBrgb(64, 29, 104)
HSLhsl(268, 56%, 26%)
OKLCHoklch(32.4% 0.125 301)

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 #401D68 13.17:1 AAA Lc -102.3 Preferred for body text
Black text on #401D68 1.59:1 Fails Lc 0.0 Not readable
#401D68 text on white 13.17:1 AAA Lc 99.0 Preferred for body text
#401D68 text on black 1.59: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

    #F7F4FD

    oklch(97.2% 0.012 301.3)

  2. Step 100

    100

    #EDE6FA

    oklch(93.6% 0.028 301.7)

  3. Step 200

    200

    #DFD2F7

    oklch(88.6% 0.052 301.3)

  4. Step 300

    300

    #CBB3F4

    oklch(81% 0.093 301.3)

  5. Step 400

    400

    #B188EE

    oklch(70.6% 0.15 301.2)

  6. Step 500

    500

    #9F66E9

    oklch(63.1% 0.192 301.1)

  7. Step 600

    600

    #8A49D7

    oklch(55.6% 0.208 300.8)

  8. Step 700

    700

    #7639BA

    oklch(49.2% 0.193 301.2)

  9. Step 800

    800

    #603097

    oklch(42.8% 0.161 301.2)

  10. Step 900

    900 (this color)

    #401D68

    oklch(32.4% 0.125 301)

  11. Step 950

    950

    #2D1B46

    oklch(27% 0.078 300.6)

Export this scale for Tailwind in the Tailwind colors tool

#401D68 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)#00306A0.090
Deuteranopia (no green cones)#0030660.091
Tritanopia (no blue cones)#372E400.092
Achromatopsia (no color)#3030300.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #401D68

    #401D68

    oklch(32.4% 0.125 301)

  • #2E3900

    #2E3900

    oklch(32.3% 0.077 120.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401D68

    #401D68

    oklch(32.4% 0.125 301)

  • #1F2A72

    #1F2A72

    oklch(32.5% 0.124 271.1)

  • #551150

    #551150

    oklch(32.4% 0.125 331.3)

Open the analogous palette in the generator

Split complementary

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

  • #401D68

    #401D68

    oklch(32.4% 0.125 301)

  • #413200

    #413200

    oklch(32.5% 0.066 90.4)

  • #00401B

    #00401B

    oklch(32.5% 0.087 151.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401D68

    #401D68

    oklch(32.4% 0.125 301)

  • #4F2900

    #4F2900

    oklch(32.4% 0.076 60.7)

  • #003D36

    #003D36

    oklch(32.3% 0.058 182.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401D68

    #401D68

    oklch(32.4% 0.125 301)

  • #650901

    #650901

    oklch(32.4% 0.125 30.9)

  • #2E3900

    #2E3900

    oklch(32.3% 0.077 120.9)

  • #003B44

    #003B44

    oklch(32.3% 0.056 211.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #401D68 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.