#400E38

Closest named color: Aubergine (#3D0734). oklch(26.9% 0.095 335), rgb(64, 14, 56).

Aa

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

About this color

#400E38 is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.095 and its hue 335°. Its hue sits on the warm side of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.016 away. White text reads best on it, at 15.69:1.

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.095)
Temperaturewarm
Nearest nameAubergine (#3D0734)
Black text1.33:1
White text15.69:1

Values

HEX#400E38
RGBrgb(64, 14, 56)
HSLhsl(310, 64%, 15%)
OKLCHoklch(26.9% 0.095 335)

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 #400E38 15.69:1 AAA Lc -104.8 Preferred for body text
Black text on #400E38 1.33:1 Fails Lc 0.0 Not readable
#400E38 text on white 15.69:1 AAA Lc 102.1 Preferred for body text
#400E38 text on black 1.33: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

    #F8E2F3

    oklch(93.5% 0.033 333.6)

  3. Step 200

    200

    #F4CAEA

    oklch(88.5% 0.063 334.5)

  4. Step 300

    300

    #EEA5DD

    oklch(80.9% 0.112 335.3)

  5. Step 400

    400

    #E26FCC

    oklch(70.6% 0.18 335.1)

  6. Step 500

    500

    #D63FBF

    oklch(63% 0.229 334.8)

  7. Step 600

    600

    #C100AA

    oklch(55.6% 0.247 335.1)

  8. Step 700

    700

    #A30090

    oklch(49.1% 0.218 334.9)

  9. Step 800

    800

    #870077

    oklch(42.7% 0.19 334.9)

  10. Step 900

    900

    #6D1360

    oklch(37.7% 0.149 335)

  11. Step 950

    950 (this color)

    #400E38

    oklch(26.9% 0.095 335)

Export this scale for Tailwind in the Tailwind colors tool

#400E38 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)#0E1E390.102
Deuteranopia (no green cones)#1F26370.088
Tritanopia (no blue cones)#4312210.048
Achromatopsia (no color)#2323230.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #400E38

    #400E38

    oklch(26.9% 0.095 335)

  • #002F17

    #002F17

    oklch(26.8% 0.066 155.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #400E38

    #400E38

    oklch(26.9% 0.095 335)

  • #31164A

    #31164A

    oklch(26.9% 0.094 304.8)

  • #490920

    #490920

    oklch(27% 0.095 5.2)

Open the analogous palette in the generator

Split complementary

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

  • #400E38

    #400E38

    oklch(26.9% 0.095 335)

  • #1F2B00

    #1F2B00

    oklch(26.8% 0.067 124.3)

  • #002E29

    #002E29

    oklch(27.1% 0.048 183.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #400E38

    #400E38

    oklch(26.9% 0.095 335)

  • #2F2500

    #2F2500

    oklch(26.8% 0.055 93.5)

  • #002C35

    #002C35

    oklch(27% 0.048 215.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #400E38

    #400E38

    oklch(26.9% 0.095 335)

  • #3A1F00

    #3A1F00

    oklch(27% 0.06 65.1)

  • #002F17

    #002F17

    oklch(26.8% 0.066 155.1)

  • #002845

    #002845

    oklch(26.8% 0.069 245.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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