#4E34A1

Closest named color: Blueberry (#464196). oklch(42.2% 0.167 288), rgb(78, 52, 161).

Aa

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

About this color

#4E34A1 is a dark, vivid purple. In OKLCH its lightness is 42%, its chroma 0.167 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.036 away. White text reads best on it, at 9.01:1.

Hue familyPurples
Lightnessdark (42%)
Chromavivid (0.167)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.32:1
White text9.01:1

Values

HEX#4E34A1
RGBrgb(78, 52, 161)
HSLhsl(254, 51%, 42%)
OKLCHoklch(42.2% 0.167 288)

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 #4E34A1 9.01:1 AAA Lc -94.6 Preferred for body text
Black text on #4E34A1 2.32:1 Fails Lc 13.8 Not readable
#4E34A1 text on white 9.01:1 AAA Lc 90.1 Preferred for body text
#4E34A1 text on black 2.32:1 Fails Lc -12.1 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 800.

  1. Step 50

    50

    #F5F4FE

    oklch(97.1% 0.013 290.8)

  2. Step 100

    100

    #E8E7FC

    oklch(93.5% 0.028 288)

  3. Step 200

    200

    #D7D4FC

    oklch(88.5% 0.055 288.7)

  4. Step 300

    300

    #BDB7FC

    oklch(80.9% 0.097 288)

  5. Step 400

    400

    #9D8EFB

    oklch(70.6% 0.156 288)

  6. Step 500

    500

    #886DF8

    oklch(63% 0.199 288.3)

  7. Step 600

    600

    #7450E7

    oklch(55.6% 0.216 288.2)

  8. Step 700

    700

    #623FC9

    oklch(49.1% 0.201 288.3)

  9. Step 800

    800 (this color)

    #4E34A1

    oklch(42.2% 0.167 288)

  10. Step 900

    900

    #413081

    oklch(37.6% 0.13 288.1)

  11. Step 950

    950

    #261D4C

    oklch(27% 0.083 288.3)

Export this scale for Tailwind in the Tailwind colors tool

#4E34A1 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)#004BA40.086
Deuteranopia (no green cones)#00469F0.083
Tritanopia (no blue cones)#304F660.136
Achromatopsia (no color)#4949490.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #4E34A1

    #4E34A1

    oklch(42.2% 0.167 288)

  • #535100

    #535100

    oklch(42.3% 0.091 108.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4E34A1

    #4E34A1

    oklch(42.2% 0.167 288)

  • #0048A1

    #0048A1

    oklch(42.2% 0.157 258.2)

  • #712287

    #712287

    oklch(42.2% 0.167 317.8)

Open the analogous palette in the generator

Split complementary

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

  • #4E34A1

    #4E34A1

    oklch(42.2% 0.167 288)

  • #684600

    #684600

    oklch(42.2% 0.088 77.2)

  • #225D00

    #225D00

    oklch(42.2% 0.131 138.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4E34A1

    #4E34A1

    oklch(42.2% 0.167 288)

  • #7E3500

    #7E3500

    oklch(42.3% 0.115 47.8)

  • #005C45

    #005C45

    oklch(42.2% 0.085 168.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4E34A1

    #4E34A1

    oklch(42.2% 0.167 288)

  • #930428

    #930428

    oklch(42.2% 0.167 18.2)

  • #535100

    #535100

    oklch(42.3% 0.091 108.1)

  • #00595C

    #00595C

    oklch(42.1% 0.072 198.8)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #4E34A1.

Similar named colors

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

Use #4E34A1 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.