#40163B

Closest named color: Aubergine (#3D0734). oklch(28.1% 0.084 332.4), rgb(64, 22, 59).

Aa

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

About this color

#40163B is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.084 and its hue 332°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.032 away. White text reads best on it, at 15.04:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.084)
Temperaturein between
Nearest nameAubergine (#3D0734)
Black text1.39:1
White text15.04:1

Values

HEX#40163B
RGBrgb(64, 22, 59)
HSLhsl(307, 49%, 17%)
OKLCHoklch(28.1% 0.084 332.4)

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 #40163B 15.04:1 AAA Lc -104.4 Preferred for body text
Black text on #40163B 1.39:1 Fails Lc 0.0 Not readable
#40163B text on white 15.04:1 AAA Lc 101.6 Preferred for body text
#40163B text on black 1.39: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

    #FBF2F9

    oklch(97% 0.013 333)

  2. Step 100

    100

    #F6E3F2

    oklch(93.5% 0.029 332.8)

  3. Step 200

    200

    #F0CCE9

    oklch(88.4% 0.055 332.7)

  4. Step 300

    300

    #E7A9DD

    oklch(80.9% 0.099 332.2)

  5. Step 400

    400

    #D977CC

    oklch(70.6% 0.16 332.2)

  6. Step 500

    500

    #CC4EBE

    oklch(63% 0.204 332.3)

  7. Step 600

    600

    #B829AA

    oklch(55.7% 0.221 332.6)

  8. Step 700

    700

    #9E1892

    oklch(49.2% 0.206 332.5)

  9. Step 800

    800

    #801976

    oklch(42.7% 0.17 332.6)

  10. Step 900

    900

    #671E60

    oklch(37.7% 0.132 331.9)

  11. Step 950

    950 (this color)

    #40163B

    oklch(28.1% 0.084 332.4)

Export this scale for Tailwind in the Tailwind colors tool

#40163B 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)#15233C0.087
Deuteranopia (no green cones)#22293A0.077
Tritanopia (no blue cones)#4319260.043
Achromatopsia (no color)#2626260.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #40163B

    #40163B

    oklch(28.1% 0.084 332.4)

  • #003316

    #003316

    oklch(28.1% 0.073 152.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40163B

    #40163B

    oklch(28.1% 0.084 332.4)

  • #321C4B

    #321C4B

    oklch(28.1% 0.085 302.9)

  • #491226

    #491226

    oklch(28.2% 0.085 2)

Open the analogous palette in the generator

Split complementary

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

  • #40163B

    #40163B

    oklch(28.1% 0.084 332.4)

  • #232E00

    #232E00

    oklch(28.1% 0.069 122.7)

  • #00312B

    #00312B

    oklch(28.1% 0.05 182.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40163B

    #40163B

    oklch(28.1% 0.084 332.4)

  • #332800

    #332800

    oklch(28.1% 0.058 92.9)

  • #002F37

    #002F37

    oklch(28% 0.049 212.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40163B

    #40163B

    oklch(28.1% 0.084 332.4)

  • #3F2100

    #3F2100

    oklch(28.2% 0.064 63.2)

  • #003316

    #003316

    oklch(28.1% 0.073 152.4)

  • #002C47

    #002C47

    oklch(28.1% 0.067 242.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40163B 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.