#402064

Closest named color: Royal Purple (#4B006E). oklch(32.5% 0.115 302), rgb(64, 32, 100).

Aa

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

About this color

#402064 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.115 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.050 away. White text reads best on it, at 13.05:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.115)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.60:1
White text13.05:1

Values

HEX#402064
RGBrgb(64, 32, 100)
HSLhsl(268, 52%, 26%)
OKLCHoklch(32.5% 0.115 302)

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 #402064 13.05:1 AAA Lc -102.2 Preferred for body text
Black text on #402064 1.60:1 Fails Lc 0.0 Not readable
#402064 text on white 13.05:1 AAA Lc 98.9 Preferred for body text
#402064 text on black 1.60: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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #EDE6F8

    oklch(93.6% 0.025 303.5)

  3. Step 200

    200

    #DFD2F4

    oklch(88.5% 0.048 302.8)

  4. Step 300

    300

    #CBB4F0

    oklch(81% 0.087 302)

  5. Step 400

    400

    #B18AE8

    oklch(70.7% 0.139 302.1)

  6. Step 500

    500

    #9E6AE1

    oklch(63.1% 0.176 301.7)

  7. Step 600

    600

    #8A4ECF

    oklch(55.7% 0.192 301.9)

  8. Step 700

    700

    #753DB3

    oklch(49.1% 0.179 301.9)

  9. Step 800

    800

    #5F3491

    oklch(42.8% 0.148 301.7)

  10. Step 900

    900 (this color)

    #402064

    oklch(32.5% 0.115 302)

  11. Step 950

    950

    #2D1C44

    oklch(27% 0.073 301.3)

Export this scale for Tailwind in the Tailwind colors tool

#402064 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)#0030660.088
Deuteranopia (no green cones)#0730630.085
Tritanopia (no blue cones)#392F3F0.085
Achromatopsia (no color)#3131310.116

Harmonies

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

Complementary

The opposite hue (180°).

  • #402064

    #402064

    oklch(32.5% 0.115 302)

  • #2E3A00

    #2E3A00

    oklch(32.6% 0.079 121.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402064

    #402064

    oklch(32.5% 0.115 302)

  • #212B6E

    #212B6E

    oklch(32.4% 0.116 271.9)

  • #54164E

    #54164E

    oklch(32.6% 0.116 332)

Open the analogous palette in the generator

Split complementary

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

  • #402064

    #402064

    oklch(32.5% 0.115 302)

  • #403300

    #403300

    oklch(32.6% 0.067 93.2)

  • #00401D

    #00401D

    oklch(32.5% 0.085 152.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402064

    #402064

    oklch(32.5% 0.115 302)

  • #4F2A00

    #4F2A00

    oklch(32.7% 0.075 62.1)

  • #003E36

    #003E36

    oklch(32.6% 0.059 180.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402064

    #402064

    oklch(32.5% 0.115 302)

  • #621205

    #621205

    oklch(32.5% 0.115 32.1)

  • #2E3A00

    #2E3A00

    oklch(32.6% 0.079 121.7)

  • #003C45

    #003C45

    oklch(32.7% 0.057 211.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402064 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.