#40384E

Closest named color: Onyx (#343A40). oklch(35.8% 0.039 301.1), rgb(64, 56, 78).

Aa

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

About this color

#40384E is a dark, muted purple. In OKLCH its lightness is 36%, its chroma 0.039 and its hue 301°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.035 away. White text reads best on it, at 11.08:1.

Hue familyPurples
Lightnessdark (36%)
Chromamuted (0.039)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.89:1
White text11.08:1

Values

HEX#40384E
RGBrgb(64, 56, 78)
HSLhsl(262, 16%, 26%)
OKLCHoklch(35.8% 0.039 301.1)

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 #40384E 11.08:1 AAA Lc -99.4 Preferred for body text
Black text on #40384E 1.89:1 Fails Lc 8.3 Not readable
#40384E text on white 11.08:1 AAA Lc 95.6 Preferred for body text
#40384E text on black 1.89:1 Fails Lc 0.0 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

    #F6F5F8

    oklch(97.2% 0.004 301.4)

  2. Step 100

    100

    #EBE9EF

    oklch(93.7% 0.008 301.4)

  3. Step 200

    200

    #DBD7E2

    oklch(88.6% 0.016 302.5)

  4. Step 300

    300

    #C3BDD1

    oklch(80.9% 0.029 299.4)

  5. Step 400

    400

    #A59ABA

    oklch(70.6% 0.048 300.9)

  6. Step 500

    500

    #8F81A8

    oklch(63% 0.06 301.1)

  7. Step 600

    600

    #7A6B94

    oklch(55.7% 0.065 301.1)

  8. Step 700

    700

    #66597E

    oklch(49.1% 0.06 300.3)

  9. Step 800

    800

    #544966

    oklch(42.8% 0.049 301.7)

  10. Step 900

    900 (this color)

    #40384E

    oklch(35.8% 0.039 301.1)

  11. Step 950

    950

    #282431

    oklch(27% 0.024 298.9)

Export this scale for Tailwind in the Tailwind colors tool

#40384E 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)#343C4F0.022
Deuteranopia (no green cones)#353C4D0.022
Tritanopia (no blue cones)#3E3B400.030
Achromatopsia (no color)#3C3C3C0.039

Harmonies

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

Complementary

The opposite hue (180°).

  • #40384E

    #40384E

    oklch(35.8% 0.039 301.1)

  • #394029

    #394029

    oklch(35.8% 0.039 122.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40384E

    #40384E

    oklch(35.8% 0.039 301.1)

  • #353C51

    #353C51

    oklch(35.9% 0.038 270.1)

  • #493546

    #493546

    oklch(35.8% 0.04 331.6)

Open the analogous palette in the generator

Split complementary

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

  • #40384E

    #40384E

    oklch(35.8% 0.039 301.1)

  • #443C25

    #443C25

    oklch(35.8% 0.038 91)

  • #2D4332

    #2D4332

    oklch(35.9% 0.04 151)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40384E

    #40384E

    oklch(35.8% 0.039 301.1)

  • #4C3828

    #4C3828

    oklch(35.9% 0.039 59.8)

  • #24433E

    #24433E

    oklch(35.7% 0.038 182.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40384E

    #40384E

    oklch(35.8% 0.039 301.1)

  • #4F3530

    #4F3530

    oklch(35.8% 0.039 31.2)

  • #394029

    #394029

    oklch(35.8% 0.039 122.1)

  • #234248

    #234248

    oklch(35.8% 0.038 211.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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