#40374F

Closest named color: Onyx (#343A40). oklch(35.6% 0.042 301.5), rgb(64, 55, 79).

Aa

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

About this color

#40374F is a dark, muted purple. In OKLCH its lightness is 36%, its chroma 0.042 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.038 away. White text reads best on it, at 11.18:1.

Hue familyPurples
Lightnessdark (36%)
Chromamuted (0.042)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.87:1
White text11.18:1

Values

HEX#40374F
RGBrgb(64, 55, 79)
HSLhsl(263, 18%, 26%)
OKLCHoklch(35.6% 0.042 301.5)

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 #40374F 11.18:1 AAA Lc -99.6 Preferred for body text
Black text on #40374F 1.87:1 Fails Lc 8.1 Not readable
#40374F text on white 11.18:1 AAA Lc 95.8 Preferred for body text
#40374F text on black 1.87: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

    #EBE8EF

    oklch(93.5% 0.01 305.4)

  3. Step 200

    200

    #DBD7E3

    oklch(88.6% 0.017 301.2)

  4. Step 300

    300

    #C4BCD2

    oklch(80.9% 0.032 302.2)

  5. Step 400

    400

    #A69ABC

    oklch(70.8% 0.051 301.2)

  6. Step 500

    500

    #9081AB

    oklch(63.2% 0.064 300.9)

  7. Step 600

    600

    #7A6A96

    oklch(55.6% 0.069 300.8)

  8. Step 700

    700

    #675880

    oklch(49.1% 0.065 301.2)

  9. Step 800

    800

    #544868

    oklch(42.7% 0.054 301.3)

  10. Step 900

    900 (this color)

    #40374F

    oklch(35.6% 0.042 301.5)

  11. Step 950

    950

    #292332

    oklch(27% 0.029 302.8)

Export this scale for Tailwind in the Tailwind colors tool

#40374F 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)#323B500.025
Deuteranopia (no green cones)#343B4E0.023
Tritanopia (no blue cones)#3E3B3F0.035
Achromatopsia (no color)#3B3B3B0.043

Harmonies

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

Complementary

The opposite hue (180°).

  • #40374F

    #40374F

    oklch(35.6% 0.042 301.5)

  • #394026

    #394026

    oklch(35.7% 0.043 120.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40374F

    #40374F

    oklch(35.6% 0.042 301.5)

  • #343B53

    #343B53

    oklch(35.7% 0.043 271.6)

  • #493446

    #493446

    oklch(35.6% 0.042 331.4)

Open the analogous palette in the generator

Split complementary

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

  • #40374F

    #40374F

    oklch(35.6% 0.042 301.5)

  • #443C21

    #443C21

    oklch(35.7% 0.043 93.4)

  • #2B4331

    #2B4331

    oklch(35.7% 0.043 151.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40374F

    #40374F

    oklch(35.6% 0.042 301.5)

  • #4C3725

    #4C3725

    oklch(35.6% 0.042 61.5)

  • #20443E

    #20443E

    oklch(35.8% 0.043 181.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40374F

    #40374F

    oklch(35.6% 0.042 301.5)

  • #50342E

    #50342E

    oklch(35.6% 0.042 32.6)

  • #394026

    #394026

    oklch(35.7% 0.043 120.9)

  • #1F4249

    #1F4249

    oklch(35.6% 0.042 212.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40374F 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.