#40388B

Closest named color: Dark Slate Blue (#483D8B). oklch(39.8% 0.133 282.9), rgb(64, 56, 139).

Aa

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

About this color

#40388B is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.133 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.020 away. White text reads best on it, at 9.73:1.

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

Values

HEX#40388B
RGBrgb(64, 56, 139)
HSLhsl(246, 43%, 38%)
OKLCHoklch(39.8% 0.133 282.9)

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 #40388B 9.73:1 AAA Lc -96.5 Preferred for body text
Black text on #40388B 2.15:1 Fails Lc 11.7 Not readable
#40388B text on white 9.73:1 AAA Lc 92.2 Preferred for body text
#40388B 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

    #F4F5FE

    oklch(97.2% 0.012 281.1)

  2. Step 100

    100

    #E7E8FD

    oklch(93.7% 0.028 283.7)

  3. Step 200

    200

    #D3D5FE

    oklch(88.5% 0.056 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

    #7D70FE

    oklch(63.1% 0.204 283)

  7. Step 600

    600

    #6953EE

    oklch(55.7% 0.222 282.9)

  8. Step 700

    700

    #5842CF

    oklch(49.2% 0.206 282.9)

  9. Step 800

    800

    #4738A7

    oklch(42.7% 0.17 282.6)

  10. Step 900

    900 (this color)

    #40388B

    oklch(39.8% 0.133 282.9)

  11. Step 950

    950

    #221E4E

    oklch(27% 0.085 282.8)

Export this scale for Tailwind in the Tailwind colors tool

#40388B 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)#00478E0.064
Deuteranopia (no green cones)#0041890.062
Tritanopia (no blue cones)#214B5C0.112
Achromatopsia (no color)#4444440.134

Harmonies

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

Complementary

The opposite hue (180°).

  • #40388B

    #40388B

    oklch(39.8% 0.133 282.9)

  • #504800

    #504800

    oklch(39.7% 0.083 102.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40388B

    #40388B

    oklch(39.8% 0.133 282.9)

  • #004786

    #004786

    oklch(39.8% 0.122 252.8)

  • #5F2B79

    #5F2B79

    oklch(39.7% 0.133 312.7)

Open the analogous palette in the generator

Split complementary

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

  • #40388B

    #40388B

    oklch(39.8% 0.133 282.9)

  • #623F00

    #623F00

    oklch(39.9% 0.085 73.8)

  • #2D5300

    #2D5300

    oklch(39.8% 0.112 133.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40388B

    #40388B

    oklch(39.8% 0.133 282.9)

  • #782B00

    #782B00

    oklch(39.7% 0.118 43)

  • #005539

    #005539

    oklch(39.8% 0.086 162.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40388B

    #40388B

    oklch(39.8% 0.133 282.9)

  • #7F1C32

    #7F1C32

    oklch(39.9% 0.133 13.2)

  • #504800

    #504800

    oklch(39.7% 0.083 102.2)

  • #005251

    #005251

    oklch(39.7% 0.068 193.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40388B 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.