#402C67

Closest named color: Prussian Blue (#1D3557). oklch(34.8% 0.1 296.5), rgb(64, 44, 103).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (35%)
Chromamoderately saturated (0.100)
Temperaturein between
Nearest namePrussian Blue (#1D3557)
Black text1.77:1
White text11.83:1

Values

HEX#402C67
RGBrgb(64, 44, 103)
HSLhsl(260, 40%, 29%)
OKLCHoklch(34.8% 0.1 296.5)

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 #402C67 11.83:1 AAA Lc -100.5 Preferred for body text
Black text on #402C67 1.77:1 Fails Lc 0.0 Not readable
#402C67 text on white 11.83:1 AAA Lc 96.9 Preferred for body text
#402C67 text on black 1.77: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

    #DBD4F2

    oklch(88.5% 0.041 296.2)

  4. Step 300

    300

    #C5B7EC

    oklch(80.9% 0.075 296.8)

  5. Step 400

    400

    #A890E2

    oklch(70.7% 0.12 296.7)

  6. Step 500

    500

    #9472DA

    oklch(63.1% 0.154 296.8)

  7. Step 600

    600

    #7F58C7

    oklch(55.5% 0.166 296.8)

  8. Step 700

    700

    #6B48AC

    oklch(49.1% 0.154 296.4)

  9. Step 800

    800

    #573C8C

    oklch(42.8% 0.128 296.1)

  10. Step 900

    900 (this color)

    #402C67

    oklch(34.8% 0.1 296.5)

  11. Step 950

    950

    #2A1F41

    oklch(27% 0.062 297)

Export this scale for Tailwind in the Tailwind colors tool

#402C67 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)#1338690.067
Deuteranopia (no green cones)#1937660.062
Tritanopia (no blue cones)#3738450.078
Achromatopsia (no color)#3737370.100

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C67

    #402C67

    oklch(34.8% 0.1 296.5)

  • #383F00

    #383F00

    oklch(34.9% 0.08 116.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C67

    #402C67

    oklch(34.8% 0.1 296.5)

  • #22366D

    #22366D

    oklch(34.9% 0.099 266.3)

  • #542455

    #542455

    oklch(34.9% 0.1 326.7)

Open the analogous palette in the generator

Split complementary

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

  • #402C67

    #402C67

    oklch(34.8% 0.1 296.5)

  • #4A3700

    #4A3700

    oklch(34.8% 0.071 87)

  • #064716

    #064716

    oklch(34.8% 0.1 146.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C67

    #402C67

    oklch(34.8% 0.1 296.5)

  • #5A2C00

    #5A2C00

    oklch(34.8% 0.085 56.5)

  • #004539

    #004539

    oklch(34.9% 0.065 176.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C67

    #402C67

    oklch(34.8% 0.1 296.5)

  • #64201C

    #64201C

    oklch(34.9% 0.099 26.8)

  • #383F00

    #383F00

    oklch(34.9% 0.08 116.6)

  • #004349

    #004349

    oklch(34.9% 0.06 204.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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