#402C76

Closest named color: Dark Slate Blue (#483D8B). oklch(36% 0.121 291.6), rgb(64, 44, 118).

Aa

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

About this color

#402C76 is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.121 and its hue 292°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.056 away. White text reads best on it, at 11.41:1.

Hue familyPurples
Lightnessdark (36%)
Chromamoderately saturated (0.121)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text1.83:1
White text11.41:1

Values

HEX#402C76
RGBrgb(64, 44, 118)
HSLhsl(256, 46%, 32%)
OKLCHoklch(36% 0.121 291.6)

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 #402C76 11.41:1 AAA Lc -99.7 Preferred for body text
Black text on #402C76 1.83:1 Fails Lc 7.9 Not readable
#402C76 text on white 11.41:1 AAA Lc 96.0 Preferred for body text
#402C76 text on black 1.83: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 900.

  1. Step 50

    50

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #EAE7FB

    oklch(93.6% 0.027 292.8)

  3. Step 200

    200

    #D9D4F9

    oklch(88.6% 0.051 291.5)

  4. Step 300

    300

    #C1B6F7

    oklch(80.8% 0.091 292)

  5. Step 400

    400

    #A38EF3

    oklch(70.7% 0.145 291.8)

  6. Step 500

    500

    #8E6EEF

    oklch(63.1% 0.186 291.6)

  7. Step 600

    600

    #7A52DD

    oklch(55.7% 0.202 291.8)

  8. Step 700

    700

    #6741C0

    oklch(49.1% 0.188 291.7)

  9. Step 800

    800

    #53379B

    oklch(42.7% 0.155 291.3)

  10. Step 900

    900 (this color)

    #402C76

    oklch(36% 0.121 291.6)

  11. Step 950

    950

    #281D48

    oklch(26.9% 0.077 292.2)

Export this scale for Tailwind in the Tailwind colors tool

#402C76 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)#003B780.075
Deuteranopia (no green cones)#0038740.075
Tritanopia (no blue cones)#303D4C0.099
Achromatopsia (no color)#3A3A3A0.122

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C76

    #402C76

    oklch(36% 0.121 291.6)

  • #3F4000

    #3F4000

    oklch(35.9% 0.079 110.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C76

    #402C76

    oklch(36% 0.121 291.6)

  • #15387B

    #15387B

    oklch(35.8% 0.121 261.7)

  • #592162

    #592162

    oklch(36% 0.121 321.9)

Open the analogous palette in the generator

Split complementary

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

  • #402C76

    #402C76

    oklch(36% 0.121 291.6)

  • #503800

    #503800

    oklch(35.9% 0.074 81.7)

  • #074B00

    #074B00

    oklch(35.9% 0.12 141.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C76

    #402C76

    oklch(36% 0.121 291.6)

  • #622B00

    #622B00

    oklch(35.9% 0.094 50.9)

  • #004938

    #004938

    oklch(36.1% 0.071 170.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C76

    #402C76

    oklch(36% 0.121 291.6)

  • #6F171F

    #6F171F

    oklch(36% 0.121 21.2)

  • #3F4000

    #3F4000

    oklch(35.9% 0.079 110.8)

  • #00464A

    #00464A

    oklch(35.9% 0.061 201.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402C76 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.