#40394D

Closest named color: Onyx (#343A40). oklch(36% 0.035 300.7), rgb(64, 57, 77).

Aa

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

About this color

#40394D is a dark, muted purple. In OKLCH its lightness is 36%, its chroma 0.035 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.033 away. White text reads best on it, at 10.99:1.

Hue familyPurples
Lightnessdark (36%)
Chromamuted (0.035)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.91:1
White text10.99:1

Values

HEX#40394D
RGBrgb(64, 57, 77)
HSLhsl(261, 15%, 26%)
OKLCHoklch(36% 0.035 300.7)

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 #40394D 10.99:1 AAA Lc -99.3 Preferred for body text
Black text on #40394D 1.91:1 Fails Lc 8.5 Not readable
#40394D text on white 10.99:1 AAA Lc 95.4 Preferred for body text
#40394D text on black 1.91: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

    #F6F5F7

    oklch(97.1% 0.003 308.4)

  2. Step 100

    100

    #EAE9EE

    oklch(93.6% 0.007 295.4)

  3. Step 200

    200

    #DAD7E2

    oklch(88.5% 0.015 298.5)

  4. Step 300

    300

    #C3BDCF

    oklch(80.9% 0.026 301)

  5. Step 400

    400

    #A59BB7

    oklch(70.7% 0.042 301.6)

  6. Step 500

    500

    #8F82A6

    oklch(63.1% 0.055 301.3)

  7. Step 600

    600

    #796C91

    oklch(55.7% 0.058 300.6)

  8. Step 700

    700

    #665A7B

    oklch(49.2% 0.054 301.1)

  9. Step 800

    800

    #534964

    oklch(42.6% 0.046 301.4)

  10. Step 900

    900 (this color)

    #40394D

    oklch(36% 0.035 300.7)

  11. Step 950

    950

    #282430

    oklch(27% 0.023 300.1)

Export this scale for Tailwind in the Tailwind colors tool

#40394D 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)#353C4E0.019
Deuteranopia (no green cones)#363C4C0.019
Tritanopia (no blue cones)#3E3C400.028
Achromatopsia (no color)#3C3C3C0.035

Harmonies

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

Complementary

The opposite hue (180°).

  • #40394D

    #40394D

    oklch(36% 0.035 300.7)

  • #3A402B

    #3A402B

    oklch(35.9% 0.035 121.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40394D

    #40394D

    oklch(36% 0.035 300.7)

  • #363C50

    #363C50

    oklch(35.9% 0.036 271.6)

  • #483646

    #483646

    oklch(35.9% 0.036 330.1)

Open the analogous palette in the generator

Split complementary

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

  • #40394D

    #40394D

    oklch(36% 0.035 300.7)

  • #443D28

    #443D28

    oklch(36.1% 0.035 91.8)

  • #304334

    #304334

    oklch(36.2% 0.035 150.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40394D

    #40394D

    oklch(36% 0.035 300.7)

  • #4B392A

    #4B392A

    oklch(36% 0.035 61.1)

  • #28433E

    #28433E

    oklch(35.9% 0.034 181.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40394D

    #40394D

    oklch(36% 0.035 300.7)

  • #4E3632

    #4E3632

    oklch(35.9% 0.035 29.5)

  • #3A402B

    #3A402B

    oklch(35.9% 0.035 121.1)

  • #264248

    #264248

    oklch(35.9% 0.035 212.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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