#400B3A

Closest named color: Aubergine (#3D0734). oklch(26.7% 0.101 333.1), rgb(64, 11, 58).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.101)
Temperaturein between
Nearest nameAubergine (#3D0734)
Black text1.32:1
White text15.82:1

Values

HEX#400B3A
RGBrgb(64, 11, 58)
HSLhsl(307, 71%, 15%)
OKLCHoklch(26.7% 0.101 333.1)

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 #400B3A 15.82:1 AAA Lc -104.9 Preferred for body text
Black text on #400B3A 1.32:1 Fails Lc 0.0 Not readable
#400B3A text on white 15.82:1 AAA Lc 102.1 Preferred for body text
#400B3A text on black 1.32: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

    #FCF2FA

    oklch(97.1% 0.015 332.2)

  2. Step 100

    100

    #F9E2F4

    oklch(93.7% 0.034 333.2)

  3. Step 200

    200

    #F5CAEC

    oklch(88.6% 0.066 333.4)

  4. Step 300

    300

    #EFA3E2

    oklch(80.9% 0.12 332.9)

  5. Step 400

    400

    #E36CD2

    oklch(70.6% 0.19 333.1)

  6. Step 500

    500

    #D837C6

    oklch(63.1% 0.243 333.1)

  7. Step 600

    600

    #BF00AF

    oklch(55.5% 0.249 333)

  8. Step 700

    700

    #A20094

    oklch(49.1% 0.22 333.1)

  9. Step 800

    800

    #86007A

    oklch(42.7% 0.192 333.2)

  10. Step 900

    900

    #6E0C64

    oklch(37.7% 0.159 333.2)

  11. Step 950

    950 (this color)

    #400B3A

    oklch(26.7% 0.101 333.1)

Export this scale for Tailwind in the Tailwind colors tool

#400B3A 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)#091E3B0.109
Deuteranopia (no green cones)#1D25390.092
Tritanopia (no blue cones)#4310210.052
Achromatopsia (no color)#2222220.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #400B3A

    #400B3A

    oklch(26.7% 0.101 333.1)

  • #002F15

    #002F15

    oklch(26.8% 0.068 153.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #400B3A

    #400B3A

    oklch(26.7% 0.101 333.1)

  • #30144D

    #30144D

    oklch(26.7% 0.101 302.6)

  • #490521

    #490521

    oklch(26.7% 0.1 2.9)

Open the analogous palette in the generator

Split complementary

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

  • #400B3A

    #400B3A

    oklch(26.7% 0.101 333.1)

  • #202A00

    #202A00

    oklch(26.6% 0.065 122.4)

  • #002D28

    #002D28

    oklch(26.7% 0.047 183.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #400B3A

    #400B3A

    oklch(26.7% 0.101 333.1)

  • #2F2500

    #2F2500

    oklch(26.8% 0.055 93.5)

  • #002B33

    #002B33

    oklch(26.6% 0.047 213.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #400B3A

    #400B3A

    oklch(26.7% 0.101 333.1)

  • #3A1E00

    #3A1E00

    oklch(26.7% 0.061 63.3)

  • #002F15

    #002F15

    oklch(26.8% 0.068 153.4)

  • #002842

    #002842

    oklch(26.6% 0.064 243.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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