#40405A

Closest named color: Dark Grey Blue (#29465B). oklch(38.3% 0.044 284.1), rgb(64, 64, 90).

Aa

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

About this color

#40405A is a dark, muted purple. In OKLCH its lightness is 38%, its chroma 0.044 and its hue 284°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.035 away. White text reads best on it, at 10.00:1.

Hue familyPurples
Lightnessdark (38%)
Chromamuted (0.044)
Temperaturecool
Nearest nameDark Grey Blue (#29465B)
Black text2.09:1
White text10.00:1

Values

HEX#40405A
RGBrgb(64, 64, 90)
HSLhsl(240, 17%, 30%)
OKLCHoklch(38.3% 0.044 284.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 #40405A 10.00:1 AAA Lc -97.3 Preferred for body text
Black text on #40405A 2.09:1 Fails Lc 10.7 Not readable
#40405A text on white 10.00:1 AAA Lc 93.2 Preferred for body text
#40405A text on black 2.09:1 Fails Lc -9.3 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

    #F5F5F8

    oklch(97.1% 0.004 286.3)

  2. Step 100

    100

    #E9E9F0

    oklch(93.6% 0.009 286.2)

  3. Step 200

    200

    #D7D8E5

    oklch(88.5% 0.018 282.5)

  4. Step 300

    300

    #BDBED6

    oklch(80.8% 0.034 283.7)

  5. Step 400

    400

    #9C9DC1

    oklch(70.8% 0.052 283.7)

  6. Step 500

    500

    #8484B1

    oklch(63% 0.067 284.3)

  7. Step 600

    600

    #6E6D9D

    oklch(55.5% 0.074 284.7)

  8. Step 700

    700

    #5C5B86

    oklch(49% 0.068 284.6)

  9. Step 800

    800

    #4B4B6D

    oklch(42.7% 0.056 283.8)

  10. Step 900

    900 (this color)

    #40405A

    oklch(38.3% 0.044 284.1)

  11. Step 950

    950

    #252534

    oklch(27.1% 0.028 284.4)

Export this scale for Tailwind in the Tailwind colors tool

#40405A 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)#39435B0.013
Deuteranopia (no green cones)#3842590.014
Tritanopia (no blue cones)#3A45490.039
Achromatopsia (no color)#4242420.044

Harmonies

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

Complementary

The opposite hue (180°).

  • #40405A

    #40405A

    oklch(38.3% 0.044 284.1)

  • #474428

    #474428

    oklch(38.2% 0.044 103)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40405A

    #40405A

    oklch(38.3% 0.044 284.1)

  • #33445A

    #33445A

    oklch(38.2% 0.044 255.1)

  • #4C3C54

    #4C3C54

    oklch(38.3% 0.045 314.3)

Open the analogous palette in the generator

Split complementary

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

  • #40405A

    #40405A

    oklch(38.3% 0.044 284.1)

  • #514028

    #514028

    oklch(38.3% 0.044 75.4)

  • #394830

    #394830

    oklch(38.1% 0.044 134.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40405A

    #40405A

    oklch(38.3% 0.044 284.1)

  • #573C30

    #573C30

    oklch(38.3% 0.043 44.9)

  • #2C4B3D

    #2C4B3D

    oklch(38.4% 0.044 164)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40405A

    #40405A

    oklch(38.3% 0.044 284.1)

  • #58393C

    #58393C

    oklch(38.2% 0.044 13)

  • #474428

    #474428

    oklch(38.2% 0.044 103)

  • #244B4A

    #244B4A

    oklch(38.4% 0.044 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 #40405A, closest first.

Similar named colors

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

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