#40406A

Closest named color: Dark Grey Blue (#29465B). oklch(39.1% 0.07 282.7), rgb(64, 64, 106).

Aa

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

About this color

#40406A is a dark, moderately saturated purple. In OKLCH its lightness is 39%, its chroma 0.070 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.048 away. White text reads best on it, at 9.72:1.

Hue familyPurples
Lightnessdark (39%)
Chromamoderately saturated (0.070)
Temperaturecool
Nearest nameDark Grey Blue (#29465B)
Black text2.15:1
White text9.72:1

Values

HEX#40406A
RGBrgb(64, 64, 106)
HSLhsl(240, 25%, 33%)
OKLCHoklch(39.1% 0.07 282.7)

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 #40406A 9.72:1 AAA Lc -96.7 Preferred for body text
Black text on #40406A 2.15:1 Fails Lc 11.5 Not readable
#40406A text on white 9.72:1 AAA Lc 92.5 Preferred for body text
#40406A text on black 2.15:1 Fails Lc -9.9 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 900.

  1. Step 50

    50

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E8E9F4

    oklch(93.6% 0.015 281.9)

  3. Step 200

    200

    #D6D7ED

    oklch(88.5% 0.03 283.7)

  4. Step 300

    300

    #BBBDE3

    oklch(80.9% 0.053 282.8)

  5. Step 400

    400

    #989AD4

    oklch(70.6% 0.084 282.5)

  6. Step 500

    500

    #8080C9

    oklch(63% 0.109 282.8)

  7. Step 600

    600

    #6A69B6

    oklch(55.7% 0.118 282.5)

  8. Step 700

    700

    #59579C

    oklch(49.1% 0.109 283)

  9. Step 800

    800

    #48477F

    oklch(42.6% 0.091 282.6)

  10. Step 900

    900 (this color)

    #40406A

    oklch(39.1% 0.07 282.7)

  11. Step 950

    950

    #23233C

    oklch(26.9% 0.046 282.9)

Export this scale for Tailwind in the Tailwind colors tool

#40406A 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)#32466C0.025
Deuteranopia (no green cones)#3043690.024
Tritanopia (no blue cones)#3448500.061
Achromatopsia (no color)#4444440.071

Harmonies

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

Complementary

The opposite hue (180°).

  • #40406A

    #40406A

    oklch(39.1% 0.07 282.7)

  • #4D4713

    #4D4713

    oklch(39.3% 0.071 102.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40406A

    #40406A

    oklch(39.1% 0.07 282.7)

  • #28476A

    #28476A

    oklch(39.1% 0.07 252.6)

  • #523A60

    #523A60

    oklch(39.1% 0.069 312.4)

Open the analogous palette in the generator

Split complementary

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

  • #40406A

    #40406A

    oklch(39.1% 0.07 282.7)

  • #5C3F14

    #5C3F14

    oklch(39.2% 0.07 73.4)

  • #364D24

    #364D24

    oklch(39% 0.07 132.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40406A

    #40406A

    oklch(39.1% 0.07 282.7)

  • #653825

    #653825

    oklch(39.2% 0.071 43.2)

  • #19513A

    #19513A

    oklch(39.1% 0.071 162.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40406A

    #40406A

    oklch(39.1% 0.07 282.7)

  • #66343B

    #66343B

    oklch(39.1% 0.072 12.1)

  • #4D4713

    #4D4713

    oklch(39.3% 0.071 102.7)

  • #00504F

    #00504F

    oklch(39% 0.067 193.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40406A 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.