#401B6B

Closest named color: Royal Purple (#4B006E). oklch(32.4% 0.131 300.2), rgb(64, 27, 107).

Aa

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

About this color

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

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

Values

HEX#401B6B
RGBrgb(64, 27, 107)
HSLhsl(268, 60%, 26%)
OKLCHoklch(32.4% 0.131 300.2)

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

    #ECE6FB

    oklch(93.6% 0.029 298.9)

  3. Step 200

    200

    #DED2F9

    oklch(88.6% 0.054 299.3)

  4. Step 300

    300

    #CAB2F7

    oklch(80.8% 0.099 300.2)

  5. Step 400

    400

    #B187F3

    oklch(70.7% 0.158 300.4)

  6. Step 500

    500

    #9F64EE

    oklch(63.1% 0.201 300.5)

  7. Step 600

    600

    #8A45DD

    oklch(55.6% 0.219 300)

  8. Step 700

    700

    #7635BF

    oklch(49.1% 0.203 300.5)

  9. Step 800

    800

    #602E9B

    oklch(42.8% 0.168 300.4)

  10. Step 900

    900 (this color)

    #401B6B

    oklch(32.4% 0.131 300.2)

  11. Step 950

    950

    #2D1A48

    oklch(26.9% 0.083 299.9)

Export this scale for Tailwind in the Tailwind colors tool

#401B6B 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)#00306D0.091
Deuteranopia (no green cones)#002F690.092
Tritanopia (no blue cones)#362F410.098
Achromatopsia (no color)#3030300.132

Harmonies

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

Complementary

The opposite hue (180°).

  • #401B6B

    #401B6B

    oklch(32.4% 0.131 300.2)

  • #2F3900

    #2F3900

    oklch(32.4% 0.077 120)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401B6B

    #401B6B

    oklch(32.4% 0.131 300.2)

  • #1D2975

    #1D2975

    oklch(32.4% 0.13 270.4)

  • #560D52

    #560D52

    oklch(32.4% 0.131 330.6)

Open the analogous palette in the generator

Split complementary

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

  • #401B6B

    #401B6B

    oklch(32.4% 0.131 300.2)

  • #413200

    #413200

    oklch(32.5% 0.066 90.4)

  • #004019

    #004019

    oklch(32.5% 0.089 150)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401B6B

    #401B6B

    oklch(32.4% 0.131 300.2)

  • #4F2900

    #4F2900

    oklch(32.4% 0.076 60.7)

  • #003D35

    #003D35

    oklch(32.3% 0.058 180.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401B6B

    #401B6B

    oklch(32.4% 0.131 300.2)

  • #660400

    #660400

    oklch(32.3% 0.129 30.2)

  • #2F3900

    #2F3900

    oklch(32.4% 0.077 120)

  • #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 #401B6B, closest first.

Similar named colors

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

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