#40385D

Closest named color: Dark Grey Blue (#29465B). oklch(36.6% 0.063 292.9), rgb(64, 56, 93).

Aa

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

About this color

#40385D is a dark, muted purple. In OKLCH its lightness is 37%, its chroma 0.063 and its hue 293°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.053 away. White text reads best on it, at 10.81:1.

Hue familyPurples
Lightnessdark (37%)
Chromamuted (0.063)
Temperaturein between
Nearest nameDark Grey Blue (#29465B)
Black text1.94:1
White text10.81:1

Values

HEX#40385D
RGBrgb(64, 56, 93)
HSLhsl(253, 25%, 29%)
OKLCHoklch(36.6% 0.063 292.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 #40385D 10.81:1 AAA Lc -98.9 Preferred for body text
Black text on #40385D 1.94:1 Fails Lc 8.9 Not readable
#40385D text on white 10.81:1 AAA Lc 95.0 Preferred for body text
#40385D text on black 1.94:1 Fails Lc -7.6 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

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #EAE8F2

    oklch(93.5% 0.014 295.3)

  3. Step 200

    200

    #D9D6E9

    oklch(88.4% 0.026 293.1)

  4. Step 300

    300

    #C1BBDD

    oklch(80.8% 0.048 293.4)

  5. Step 400

    400

    #A298CC

    oklch(70.7% 0.076 293.2)

  6. Step 500

    500

    #8C7EBF

    oklch(63.1% 0.097 293.3)

  7. Step 600

    600

    #7667AB

    oklch(55.7% 0.104 292.8)

  8. Step 700

    700

    #635593

    oklch(49.1% 0.098 292.8)

  9. Step 800

    800

    #514677

    oklch(42.8% 0.08 293)

  10. Step 900

    900 (this color)

    #40385D

    oklch(36.6% 0.063 292.9)

  11. Step 950

    950

    #272338

    oklch(27.1% 0.039 292.3)

Export this scale for Tailwind in the Tailwind colors tool

#40385D 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)#2E3E5E0.031
Deuteranopia (no green cones)#2F3D5C0.030
Tritanopia (no blue cones)#3A3F460.053
Achromatopsia (no color)#3D3D3D0.063

Harmonies

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

Complementary

The opposite hue (180°).

  • #40385D

    #40385D

    oklch(36.6% 0.063 292.9)

  • #3F4217

    #3F4217

    oklch(36.6% 0.063 112.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40385D

    #40385D

    oklch(36.6% 0.063 292.9)

  • #2D3E60

    #2D3E60

    oklch(36.6% 0.063 263.4)

  • #4F3352

    #4F3352

    oklch(36.7% 0.063 323.4)

Open the analogous palette in the generator

Split complementary

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

  • #40385D

    #40385D

    oklch(36.6% 0.063 292.9)

  • #4F3B12

    #4F3B12

    oklch(36.6% 0.063 82.1)

  • #2A4728

    #2A4728

    oklch(36.6% 0.063 142.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40385D

    #40385D

    oklch(36.6% 0.063 292.9)

  • #59351D

    #59351D

    oklch(36.7% 0.063 53.2)

  • #0F493B

    #0F493B

    oklch(36.5% 0.063 172.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40385D

    #40385D

    oklch(36.6% 0.063 292.9)

  • #5C312F

    #5C312F

    oklch(36.8% 0.063 23.4)

  • #3F4217

    #3F4217

    oklch(36.6% 0.063 112.8)

  • #00484D

    #00484D

    oklch(36.6% 0.062 202.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40385D 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.