#402468

Closest named color: Royal Purple (#4B006E). oklch(33.5% 0.114 299.1), rgb(64, 36, 104).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.114)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.67:1
White text12.57:1

Values

HEX#402468
RGBrgb(64, 36, 104)
HSLhsl(265, 49%, 27%)
OKLCHoklch(33.5% 0.114 299.1)

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 #402468 12.57:1 AAA Lc -101.6 Preferred for body text
Black text on #402468 1.67:1 Fails Lc 0.0 Not readable
#402468 text on white 12.57:1 AAA Lc 98.2 Preferred for body text
#402468 text on black 1.67: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

    #ECE7F9

    oklch(93.7% 0.025 298.6)

  3. Step 200

    200

    #DDD3F5

    oklch(88.5% 0.047 298.9)

  4. Step 300

    300

    #C8B5F1

    oklch(81% 0.086 299)

  5. Step 400

    400

    #AD8CEA

    oklch(70.8% 0.137 299)

  6. Step 500

    500

    #9A6CE3

    oklch(63.2% 0.175 299.2)

  7. Step 600

    600

    #8550D1

    oklch(55.6% 0.191 299)

  8. Step 700

    700

    #7140B5

    oklch(49.2% 0.177 299)

  9. Step 800

    800

    #5C3592

    oklch(42.6% 0.147 299.4)

  10. Step 900

    900 (this color)

    #402468

    oklch(33.5% 0.114 299.1)

  11. Step 950

    950

    #2C1D44

    oklch(27.1% 0.071 299.4)

Export this scale for Tailwind in the Tailwind colors tool

#402468 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)#00336A0.084
Deuteranopia (no green cones)#0833670.080
Tritanopia (no blue cones)#3733420.088
Achromatopsia (no color)#3333330.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #402468

    #402468

    oklch(33.5% 0.114 299.1)

  • #323C00

    #323C00

    oklch(33.5% 0.079 119.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402468

    #402468

    oklch(33.5% 0.114 299.1)

  • #1F2F71

    #1F2F71

    oklch(33.4% 0.116 269)

  • #551A53

    #551A53

    oklch(33.6% 0.115 329.2)

Open the analogous palette in the generator

Split complementary

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

  • #402468

    #402468

    oklch(33.5% 0.114 299.1)

  • #453400

    #453400

    oklch(33.5% 0.068 88.4)

  • #004319

    #004319

    oklch(33.4% 0.094 149.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402468

    #402468

    oklch(33.5% 0.114 299.1)

  • #542B00

    #542B00

    oklch(33.6% 0.079 59.4)

  • #004137

    #004137

    oklch(33.6% 0.062 178.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402468

    #402468

    oklch(33.5% 0.114 299.1)

  • #65150F

    #65150F

    oklch(33.5% 0.114 29)

  • #323C00

    #323C00

    oklch(33.5% 0.079 119.6)

  • #003F47

    #003F47

    oklch(33.7% 0.058 208.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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