#4E40A4

Closest named color: Blueberry (#464196). oklch(44.4% 0.155 284.5), rgb(78, 64, 164).

Aa

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

About this color

#4E40A4 is a dark, vivid purple. In OKLCH its lightness is 44%, its chroma 0.155 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.026 away. White text reads best on it, at 8.09:1.

Hue familyPurples
Lightnessdark (44%)
Chromavivid (0.155)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.59:1
White text8.09:1

Values

HEX#4E40A4
RGBrgb(78, 64, 164)
HSLhsl(248, 44%, 45%)
OKLCHoklch(44.4% 0.155 284.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 #4E40A4 8.09:1 AAA Lc -92.3 Preferred for body text
Black text on #4E40A4 2.59:1 Fails Lc 16.4 Dividers and decoration only
#4E40A4 text on white 8.09:1 AAA Lc 87.7 Fine for body text
#4E40A4 text on black 2.59:1 Fails Lc -14.5 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

    #F4F4FE

    oklch(97% 0.013 286.1)

  2. Step 100

    100

    #E7E8FB

    oklch(93.6% 0.026 283.5)

  3. Step 200

    200

    #D5D5FA

    oklch(88.5% 0.051 285.3)

  4. Step 300

    300

    #B9B9F9

    oklch(80.8% 0.09 284.2)

  5. Step 400

    400

    #9792F7

    oklch(70.7% 0.145 284.3)

  6. Step 500

    500

    #8173F3

    oklch(63.1% 0.185 284.7)

  7. Step 600

    600

    #6C57E2

    oklch(55.6% 0.202 284.6)

  8. Step 700

    700

    #5B46C4

    oklch(49.1% 0.187 284.8)

  9. Step 800

    800 (this color)

    #4E40A4

    oklch(44.4% 0.155 284.5)

  10. Step 900

    900

    #3D347E

    oklch(37.8% 0.121 284.6)

  11. Step 950

    950

    #231F4A

    oklch(27% 0.077 284.2)

Export this scale for Tailwind in the Tailwind colors tool

#4E40A4 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)#0053A70.077
Deuteranopia (no green cones)#004DA20.075
Tritanopia (no blue cones)#2C586C0.130
Achromatopsia (no color)#5050500.155

Harmonies

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

Complementary

The opposite hue (180°).

  • #4E40A4

    #4E40A4

    oklch(44.4% 0.155 284.5)

  • #5C5600

    #5C5600

    oklch(44.5% 0.094 104.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4E40A4

    #4E40A4

    oklch(44.4% 0.155 284.5)

  • #0052A0

    #0052A0

    oklch(44.4% 0.144 254.5)

  • #72318D

    #72318D

    oklch(44.4% 0.154 314.5)

Open the analogous palette in the generator

Split complementary

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

  • #4E40A4

    #4E40A4

    oklch(44.4% 0.155 284.5)

  • #724B00

    #724B00

    oklch(44.6% 0.094 74.9)

  • #326200

    #326200

    oklch(44.4% 0.129 134.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4E40A4

    #4E40A4

    oklch(44.4% 0.155 284.5)

  • #8A3600

    #8A3600

    oklch(44.4% 0.127 44.9)

  • #006446

    #006446

    oklch(44.6% 0.095 164.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4E40A4

    #4E40A4

    oklch(44.4% 0.155 284.5)

  • #961D38

    #961D38

    oklch(44.4% 0.155 14.4)

  • #5C5600

    #5C5600

    oklch(44.5% 0.094 104.9)

  • #006060

    #006060

    oklch(44.3% 0.076 194.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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