#402D69

Closest named color: Prussian Blue (#1D3557). oklch(35.1% 0.101 295.3), rgb(64, 45, 105).

Aa

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

About this color

#402D69 is a dark, moderately saturated purple. In OKLCH its lightness is 35%, its chroma 0.101 and its hue 295°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.068 away. White text reads best on it, at 11.68:1.

Hue familyPurples
Lightnessdark (35%)
Chromamoderately saturated (0.101)
Temperaturein between
Nearest namePrussian Blue (#1D3557)
Black text1.79:1
White text11.68:1

Values

HEX#402D69
RGBrgb(64, 45, 105)
HSLhsl(259, 40%, 29%)
OKLCHoklch(35.1% 0.101 295.3)

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 #402D69 11.68:1 AAA Lc -100.3 Preferred for body text
Black text on #402D69 1.79:1 Fails Lc 0.0 Not readable
#402D69 text on white 11.68:1 AAA Lc 96.6 Preferred for body text
#402D69 text on black 1.79: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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #EBE7F7

    oklch(93.6% 0.022 297.4)

  3. Step 200

    200

    #DBD4F3

    oklch(88.5% 0.043 295.9)

  4. Step 300

    300

    #C4B7ED

    oklch(80.8% 0.076 295.7)

  5. Step 400

    400

    #A790E4

    oklch(70.7% 0.122 295.7)

  6. Step 500

    500

    #9273DC

    oklch(63.2% 0.155 295.2)

  7. Step 600

    600

    #7D59C9

    oklch(55.6% 0.167 295.2)

  8. Step 700

    700

    #6A48AE

    oklch(49.1% 0.156 295.4)

  9. Step 800

    800

    #563C8D

    oklch(42.8% 0.129 295.2)

  10. Step 900

    900 (this color)

    #402D69

    oklch(35.1% 0.101 295.3)

  11. Step 950

    950

    #291F42

    oklch(27% 0.064 294.9)

Export this scale for Tailwind in the Tailwind colors tool

#402D69 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)#13396B0.066
Deuteranopia (no green cones)#1837680.061
Tritanopia (no blue cones)#3639460.080
Achromatopsia (no color)#3838380.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D69

    #402D69

    oklch(35.1% 0.101 295.3)

  • #3A3F00

    #3A3F00

    oklch(35.1% 0.079 114.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D69

    #402D69

    oklch(35.1% 0.101 295.3)

  • #21376F

    #21376F

    oklch(35.2% 0.101 265.4)

  • #542557

    #542557

    oklch(35.2% 0.1 325.1)

Open the analogous palette in the generator

Split complementary

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

  • #402D69

    #402D69

    oklch(35.1% 0.101 295.3)

  • #4C3700

    #4C3700

    oklch(35.1% 0.072 84.7)

  • #0A4815

    #0A4815

    oklch(35.2% 0.101 145.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D69

    #402D69

    oklch(35.1% 0.101 295.3)

  • #5C2C00

    #5C2C00

    oklch(35.1% 0.087 55.2)

  • #004639

    #004639

    oklch(35.2% 0.066 175)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D69

    #402D69

    oklch(35.1% 0.101 295.3)

  • #66201E

    #66201E

    oklch(35.3% 0.101 25.4)

  • #3A3F00

    #3A3F00

    oklch(35.1% 0.079 114.7)

  • #00444A

    #00444A

    oklch(35.3% 0.06 204.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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