#403E8E

Closest named color: Dark Slate Blue (#483D8B). oklch(41.2% 0.129 280.2), rgb(64, 62, 142).

Aa

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

About this color

#403E8E is a dark, moderately saturated purple. In OKLCH its lightness is 41%, its chroma 0.129 and its hue 280°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.014 away. White text reads best on it, at 9.13:1.

Hue familyPurples
Lightnessdark (41%)
Chromamoderately saturated (0.129)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text2.29:1
White text9.13:1

Values

HEX#403E8E
RGBrgb(64, 62, 142)
HSLhsl(242, 39%, 40%)
OKLCHoklch(41.2% 0.129 280.2)

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 #403E8E 9.13:1 AAA Lc -95.2 Preferred for body text
Black text on #403E8E 2.29:1 Fails Lc 13.2 Not readable
#403E8E text on white 9.13:1 AAA Lc 90.8 Preferred for body text
#403E8E text on black 2.29:1 Fails Lc -11.6 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 800.

  1. Step 50

    50

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E7E9F9

    oklch(93.7% 0.022 280.3)

  3. Step 200

    200

    #D3D7F5

    oklch(88.5% 0.041 279.5)

  4. Step 300

    300

    #B7BCF1

    oklch(81% 0.075 280.4)

  5. Step 400

    400

    #9297EA

    oklch(70.6% 0.121 280.2)

  6. Step 500

    500

    #797BE4

    oklch(63% 0.155 280.1)

  7. Step 600

    600

    #6462D2

    oklch(55.7% 0.168 280.2)

  8. Step 700

    700

    #5350B5

    oklch(49% 0.155 280.3)

  9. Step 800

    800 (this color)

    #403E8E

    oklch(41.2% 0.129 280.2)

  10. Step 900

    900

    #393975

    oklch(37.7% 0.1 280.5)

  11. Step 950

    950

    #212245

    oklch(27.1% 0.064 280)

Export this scale for Tailwind in the Tailwind colors tool

#403E8E 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)#0A4B910.057
Deuteranopia (no green cones)#00458C0.058
Tritanopia (no blue cones)#1D50600.110
Achromatopsia (no color)#4848480.129

Harmonies

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

Complementary

The opposite hue (180°).

  • #403E8E

    #403E8E

    oklch(41.2% 0.129 280.2)

  • #564B00

    #564B00

    oklch(41.1% 0.085 99.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403E8E

    #403E8E

    oklch(41.2% 0.129 280.2)

  • #004C87

    #004C87

    oklch(41.1% 0.117 250.3)

  • #60327E

    #60327E

    oklch(41.2% 0.128 309.9)

Open the analogous palette in the generator

Split complementary

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

  • #403E8E

    #403E8E

    oklch(41.2% 0.129 280.2)

  • #694100

    #694100

    oklch(41.2% 0.089 70.5)

  • #365600

    #365600

    oklch(41.2% 0.111 130)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403E8E

    #403E8E

    oklch(41.2% 0.129 280.2)

  • #812A00

    #812A00

    oklch(41.2% 0.128 40.4)

  • #005A39

    #005A39

    oklch(41.3% 0.093 160)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403E8E

    #403E8E

    oklch(41.2% 0.129 280.2)

  • #81233A

    #81233A

    oklch(41.2% 0.128 10.4)

  • #564B00

    #564B00

    oklch(41.1% 0.085 99.6)

  • #005753

    #005753

    oklch(41.2% 0.071 189.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #403E8E 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.