#401B38

Closest named color: Aubergine (#3D0734). oklch(28.8% 0.072 336.2), rgb(64, 27, 56).

Aa

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

About this color

#401B38 is a dark, moderately saturated purple. In OKLCH its lightness is 29%, its chroma 0.072 and its hue 336°. Its hue sits on the warm side of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.044 away. White text reads best on it, at 14.66:1.

Hue familyPurples
Lightnessdark (29%)
Chromamoderately saturated (0.072)
Temperaturewarm
Nearest nameAubergine (#3D0734)
Black text1.43:1
White text14.66:1

Values

HEX#401B38
RGBrgb(64, 27, 56)
HSLhsl(313, 41%, 18%)
OKLCHoklch(28.8% 0.072 336.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 #401B38 14.66:1 AAA Lc -104.1 Preferred for body text
Black text on #401B38 1.43:1 Fails Lc 0.0 Not readable
#401B38 text on white 14.66:1 AAA Lc 101.2 Preferred for body text
#401B38 text on black 1.43: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

    #FBF3F8

    oklch(97.2% 0.011 339.3)

  2. Step 100

    100

    #F5E4F0

    oklch(93.6% 0.024 336.1)

  3. Step 200

    200

    #EECEE5

    oklch(88.5% 0.047 336)

  4. Step 300

    300

    #E4ACD5

    oklch(80.8% 0.084 336.3)

  5. Step 400

    400

    #D57EC0

    oklch(70.7% 0.135 336.5)

  6. Step 500

    500

    #C759B0

    oklch(63% 0.173 336.2)

  7. Step 600

    600

    #B23B9C

    oklch(55.6% 0.188 336)

  8. Step 700

    700

    #992B85

    oklch(49% 0.176 336.2)

  9. Step 800

    800

    #7C266C

    oklch(42.6% 0.145 336.1)

  10. Step 900

    900

    #652558

    oklch(37.8% 0.113 336.3)

  11. Step 950

    950 (this color)

    #401B38

    oklch(28.8% 0.072 336.2)

Export this scale for Tailwind in the Tailwind colors tool

#401B38 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)#1B25390.074
Deuteranopia (no green cones)#262A370.065
Tritanopia (no blue cones)#431D270.035
Achromatopsia (no color)#2828280.072

Harmonies

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

Complementary

The opposite hue (180°).

  • #401B38

    #401B38

    oklch(28.8% 0.072 336.2)

  • #00351C

    #00351C

    oklch(28.9% 0.07 156.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401B38

    #401B38

    oklch(28.8% 0.072 336.2)

  • #342046

    #342046

    oklch(28.8% 0.071 306.8)

  • #471925

    #471925

    oklch(28.8% 0.072 6.5)

Open the analogous palette in the generator

Split complementary

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

  • #401B38

    #401B38

    oklch(28.8% 0.072 336.2)

  • #223101

    #223101

    oklch(28.9% 0.072 126.1)

  • #00332F

    #00332F

    oklch(28.9% 0.051 186.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401B38

    #401B38

    oklch(28.8% 0.072 336.2)

  • #332A00

    #332A00

    oklch(28.6% 0.059 96.5)

  • #00313B

    #00313B

    oklch(28.8% 0.051 215.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401B38

    #401B38

    oklch(28.8% 0.072 336.2)

  • #402300

    #402300

    oklch(28.8% 0.064 65.6)

  • #00351C

    #00351C

    oklch(28.9% 0.07 156.3)

  • #022D4C

    #022D4C

    oklch(28.8% 0.072 246.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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