#401239

Closest named color: Aubergine (#3D0734). oklch(27.5% 0.089 334.2), rgb(64, 18, 57).

Aa

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

About this color

#401239 is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.089 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.023 away. White text reads best on it, at 15.40:1.

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.089)
Temperaturein between
Nearest nameAubergine (#3D0734)
Black text1.36:1
White text15.40:1

Values

HEX#401239
RGBrgb(64, 18, 57)
HSLhsl(309, 56%, 16%)
OKLCHoklch(27.5% 0.089 334.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 #401239 15.40:1 AAA Lc -104.6 Preferred for body text
Black text on #401239 1.36:1 Fails Lc 0.0 Not readable
#401239 text on white 15.40:1 AAA Lc 101.9 Preferred for body text
#401239 text on black 1.36: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

    #FCF2F9

    oklch(97.1% 0.014 336.1)

  2. Step 100

    100

    #F7E3F2

    oklch(93.6% 0.029 334.4)

  3. Step 200

    200

    #F2CBE9

    oklch(88.4% 0.059 334.2)

  4. Step 300

    300

    #EBA7DD

    oklch(81% 0.106 334.1)

  5. Step 400

    400

    #DE73CB

    oklch(70.6% 0.17 334.3)

  6. Step 500

    500

    #D247BD

    oklch(63.1% 0.216 334.4)

  7. Step 600

    600

    #BD1AA9

    oklch(55.6% 0.234 334.4)

  8. Step 700

    700

    #A30291

    oklch(49.2% 0.218 334.5)

  9. Step 800

    800

    #840E76

    oklch(42.7% 0.181 334.2)

  10. Step 900

    900

    #6A195F

    oklch(37.6% 0.14 334.1)

  11. Step 950

    950 (this color)

    #401239

    oklch(27.5% 0.089 334.2)

Export this scale for Tailwind in the Tailwind colors tool

#401239 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)#11203A0.095
Deuteranopia (no green cones)#2027380.082
Tritanopia (no blue cones)#4315230.045
Achromatopsia (no color)#2525250.090

Harmonies

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

Complementary

The opposite hue (180°).

  • #401239

    #401239

    oklch(27.5% 0.089 334.2)

  • #003117

    #003117

    oklch(27.5% 0.069 154.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401239

    #401239

    oklch(27.5% 0.089 334.2)

  • #32194A

    #32194A

    oklch(27.5% 0.089 304.8)

  • #480E22

    #480E22

    oklch(27.4% 0.088 4.4)

Open the analogous palette in the generator

Split complementary

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

  • #401239

    #401239

    oklch(27.5% 0.089 334.2)

  • #202D00

    #202D00

    oklch(27.5% 0.069 124.9)

  • #002F2A

    #002F2A

    oklch(27.4% 0.049 183.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401239

    #401239

    oklch(27.5% 0.089 334.2)

  • #312700

    #312700

    oklch(27.6% 0.057 94.2)

  • #002D36

    #002D36

    oklch(27.4% 0.048 215)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401239

    #401239

    oklch(27.5% 0.089 334.2)

  • #3C2000

    #3C2000

    oklch(27.5% 0.062 64.7)

  • #003117

    #003117

    oklch(27.5% 0.069 154.1)

  • #002A46

    #002A46

    oklch(27.5% 0.068 244)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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