#40112F

Closest named color: Aubergine (#3D0734). oklch(26.8% 0.083 344.9), rgb(64, 17, 47).

Aa

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

About this color

#40112F is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.083 and its hue 345°. Its hue sits on the warm side of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.026 away. White text reads best on it, at 15.68:1.

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

Values

HEX#40112F
RGBrgb(64, 17, 47)
HSLhsl(322, 58%, 16%)
OKLCHoklch(26.8% 0.083 344.9)

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 #40112F 15.68:1 AAA Lc -104.9 Preferred for body text
Black text on #40112F 1.33:1 Fails Lc 0.0 Not readable
#40112F text on white 15.68:1 AAA Lc 102.2 Preferred for body text
#40112F 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

    #FCF2F7

    oklch(97% 0.013 345.5)

  2. Step 100

    100

    #F9E3EE

    oklch(93.7% 0.028 345.9)

  3. Step 200

    200

    #F5CBE1

    oklch(88.4% 0.055 345.4)

  4. Step 300

    300

    #EFA7CF

    oklch(80.9% 0.098 345.1)

  5. Step 400

    400

    #E375B7

    oklch(70.8% 0.156 344.9)

  6. Step 500

    500

    #D74AA5

    oklch(63.1% 0.199 344.7)

  7. Step 600

    600

    #C32190

    oklch(55.7% 0.217 344.9)

  8. Step 700

    700

    #A80E7A

    oklch(49.2% 0.202 345.2)

  9. Step 800

    800

    #881364

    oklch(42.7% 0.168 344.6)

  10. Step 900

    900

    #6E1B51

    oklch(37.8% 0.13 345.2)

  11. Step 950

    950 (this color)

    #40112F

    oklch(26.8% 0.083 344.9)

Export this scale for Tailwind in the Tailwind colors tool

#40112F 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)#161E300.090
Deuteranopia (no green cones)#23262E0.080
Tritanopia (no blue cones)#45111E0.035
Achromatopsia (no color)#2323230.083

Harmonies

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

Complementary

The opposite hue (180°).

  • #40112F

    #40112F

    oklch(26.8% 0.083 344.9)

  • #002E1F

    #002E1F

    oklch(26.7% 0.056 165.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40112F

    #40112F

    oklch(26.8% 0.083 344.9)

  • #341641

    #341641

    oklch(26.6% 0.083 314.4)

  • #460F19

    #460F19

    oklch(26.8% 0.083 14.4)

Open the analogous palette in the generator

Split complementary

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

  • #40112F

    #40112F

    oklch(26.8% 0.083 344.9)

  • #132E00

    #132E00

    oklch(26.9% 0.079 135.2)

  • #002D2D

    #002D2D

    oklch(26.9% 0.046 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40112F

    #40112F

    oklch(26.8% 0.083 344.9)

  • #2A2700

    #2A2700

    oklch(26.7% 0.057 105.2)

  • #002B38

    #002B38

    oklch(26.8% 0.05 223.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40112F

    #40112F

    oklch(26.8% 0.083 344.9)

  • #362100

    #362100

    oklch(26.8% 0.057 74.3)

  • #002E1F

    #002E1F

    oklch(26.7% 0.056 165.5)

  • #03254D

    #03254D

    oklch(26.7% 0.083 255.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40112F 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.