#40416B

Closest named color: Dark Grey Blue (#29465B). oklch(39.4% 0.07 281.6), rgb(64, 65, 107).

Aa

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

About this color

#40416B is a dark, moderately saturated purple. In OKLCH its lightness is 39%, its chroma 0.070 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.048 away. White text reads best on it, at 9.60:1.

Hue familyPurples
Lightnessdark (39%)
Chromamoderately saturated (0.070)
Temperaturecool
Nearest nameDark Grey Blue (#29465B)
Black text2.18:1
White text9.60:1

Values

HEX#40416B
RGBrgb(64, 65, 107)
HSLhsl(239, 25%, 34%)
OKLCHoklch(39.4% 0.07 281.6)

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 #40416B 9.60:1 AAA Lc -96.4 Preferred for body text
Black text on #40416B 2.18:1 Fails Lc 11.8 Not readable
#40416B text on white 9.60:1 AAA Lc 92.2 Preferred for body text
#40416B text on black 2.18: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

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E8E9F4

    oklch(93.6% 0.015 281.9)

  3. Step 200

    200

    #D5D7ED

    oklch(88.4% 0.03 281.6)

  4. Step 300

    300

    #BABDE3

    oklch(80.9% 0.054 281.6)

  5. Step 400

    400

    #979BD5

    oklch(70.8% 0.085 280.9)

  6. Step 500

    500

    #7F81C9

    oklch(63.1% 0.107 281.6)

  7. Step 600

    600

    #6969B6

    oklch(55.6% 0.118 281.9)

  8. Step 700

    700

    #57579D

    oklch(49% 0.11 281.5)

  9. Step 800

    800

    #47487F

    oklch(42.8% 0.09 281.1)

  10. Step 900

    900 (this color)

    #40416B

    oklch(39.4% 0.07 281.6)

  11. Step 950

    950

    #23243C

    oklch(27.1% 0.044 281.2)

Export this scale for Tailwind in the Tailwind colors tool

#40416B 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)#33466D0.022
Deuteranopia (no green cones)#31436A0.022
Tritanopia (no blue cones)#3449510.060
Achromatopsia (no color)#4545450.071

Harmonies

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

Complementary

The opposite hue (180°).

  • #40416B

    #40416B

    oklch(39.4% 0.07 281.6)

  • #4E4713

    #4E4713

    oklch(39.4% 0.071 101.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40416B

    #40416B

    oklch(39.4% 0.07 281.6)

  • #28486B

    #28486B

    oklch(39.4% 0.071 252)

  • #533B62

    #533B62

    oklch(39.6% 0.07 311.7)

Open the analogous palette in the generator

Split complementary

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

  • #40416B

    #40416B

    oklch(39.4% 0.07 281.6)

  • #5D3F15

    #5D3F15

    oklch(39.3% 0.07 71.9)

  • #384E24

    #384E24

    oklch(39.4% 0.071 131.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40416B

    #40416B

    oklch(39.4% 0.07 281.6)

  • #663827

    #663827

    oklch(39.4% 0.071 40.8)

  • #1B523A

    #1B523A

    oklch(39.5% 0.071 161.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40416B

    #40416B

    oklch(39.4% 0.07 281.6)

  • #66353C

    #66353C

    oklch(39.4% 0.07 11.7)

  • #4E4713

    #4E4713

    oklch(39.4% 0.071 101.5)

  • #00514F

    #00514F

    oklch(39.3% 0.067 191.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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