#40378E

Closest named color: Dark Slate Blue (#483D8B). oklch(39.9% 0.139 282.8), rgb(64, 55, 142).

Aa

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

About this color

#40378E is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.139 and its hue 283°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.022 away. White text reads best on it, at 9.74:1.

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.139)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text2.15:1
White text9.74:1

Values

HEX#40378E
RGBrgb(64, 55, 142)
HSLhsl(246, 44%, 39%)
OKLCHoklch(39.9% 0.139 282.8)

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 #40378E 9.74:1 AAA Lc -96.5 Preferred for body text
Black text on #40378E 2.15:1 Fails Lc 11.7 Not readable
#40378E text on white 9.74:1 AAA Lc 92.2 Preferred for body text
#40378E text on black 2.15:1 Fails Lc -10.2 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

    #F4F4FF

    oklch(97% 0.015 286.1)

  2. Step 100

    100

    #E6E8FE

    oklch(93.6% 0.03 281.7)

  3. Step 200

    200

    #D3D5FF

    oklch(88.5% 0.058 283)

  4. Step 300

    300

    #B7B9FF

    oklch(80.9% 0.098 282.7)

  5. Step 400

    400

    #9491FF

    oklch(70.7% 0.158 282.8)

  6. Step 500

    500

    #7D70FF

    oklch(63.1% 0.205 282.9)

  7. Step 600

    600

    #6950F3

    oklch(55.6% 0.231 282.9)

  8. Step 700

    700

    #583FD3

    oklch(49.1% 0.214 282.8)

  9. Step 800

    800

    #4735AB

    oklch(42.6% 0.179 282.7)

  10. Step 900

    900 (this color)

    #40378E

    oklch(39.9% 0.139 282.8)

  11. Step 950

    950

    #221E4F

    oklch(27.1% 0.087 282.6)

Export this scale for Tailwind in the Tailwind colors tool

#40378E 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)#0047910.065
Deuteranopia (no green cones)#00418C0.063
Tritanopia (no blue cones)#1E4C5D0.118
Achromatopsia (no color)#4444440.139

Harmonies

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

Complementary

The opposite hue (180°).

  • #40378E

    #40378E

    oklch(39.9% 0.139 282.8)

  • #504900

    #504900

    oklch(40% 0.084 103.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40378E

    #40378E

    oklch(39.9% 0.139 282.8)

  • #004786

    #004786

    oklch(39.8% 0.122 252.8)

  • #60297B

    #60297B

    oklch(39.7% 0.139 312.7)

Open the analogous palette in the generator

Split complementary

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

  • #40378E

    #40378E

    oklch(39.9% 0.139 282.8)

  • #633F00

    #633F00

    oklch(40% 0.085 72.9)

  • #2E5300

    #2E5300

    oklch(39.9% 0.112 132.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40378E

    #40378E

    oklch(39.9% 0.139 282.8)

  • #792B00

    #792B00

    oklch(39.9% 0.119 42.8)

  • #005539

    #005539

    oklch(39.8% 0.086 162.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40378E

    #40378E

    oklch(39.9% 0.139 282.8)

  • #811832

    #811832

    oklch(39.9% 0.139 12.7)

  • #504900

    #504900

    oklch(40% 0.084 103.2)

  • #005351

    #005351

    oklch(40% 0.069 192)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40378E 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.