#403145

Closest named color: Onyx (#343A40). oklch(33.8% 0.04 317.6), rgb(64, 49, 69).

Aa

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

About this color

#403145 is a dark, muted purple. In OKLCH its lightness is 34%, its chroma 0.040 and its hue 318°. 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 12.04:1.

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.040)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.74:1
White text12.04:1

Values

HEX#403145
RGBrgb(64, 49, 69)
HSLhsl(285, 17%, 23%)
OKLCHoklch(33.8% 0.04 317.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 #403145 12.04:1 AAA Lc -101.1 Preferred for body text
Black text on #403145 1.74:1 Fails Lc 0.0 Not readable
#403145 text on white 12.04:1 AAA Lc 97.5 Preferred for body text
#403145 text on black 1.74: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

    #ECE8EE

    oklch(93.6% 0.009 314.8)

  3. Step 200

    200

    #DED6E0

    oklch(88.5% 0.016 319.4)

  4. Step 300

    300

    #C9BBCD

    oklch(80.9% 0.029 318.7)

  5. Step 400

    400

    #AD98B4

    oklch(70.7% 0.047 317.7)

  6. Step 500

    500

    #997EA2

    oklch(63.1% 0.061 317.6)

  7. Step 600

    600

    #84678D

    oklch(55.6% 0.067 318.1)

  8. Step 700

    700

    #6F5678

    oklch(49.1% 0.061 317)

  9. Step 800

    800

    #5B4661

    oklch(42.7% 0.051 318.6)

  10. Step 900

    900 (this color)

    #403145

    oklch(33.8% 0.04 317.6)

  11. Step 950

    950

    #2C232F

    oklch(27.2% 0.025 317.6)

Export this scale for Tailwind in the Tailwind colors tool

#403145 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)#2F35460.031
Deuteranopia (no green cones)#3237440.030
Tritanopia (no blue cones)#4033380.026
Achromatopsia (no color)#3636360.040

Harmonies

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

Complementary

The opposite hue (180°).

  • #403145

    #403145

    oklch(33.8% 0.04 317.6)

  • #2D3C28

    #2D3C28

    oklch(33.7% 0.039 138)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403145

    #403145

    oklch(33.8% 0.04 317.6)

  • #36344B

    #36344B

    oklch(33.7% 0.04 288)

  • #472F3B

    #472F3B

    oklch(33.8% 0.04 348)

Open the analogous palette in the generator

Split complementary

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

  • #403145

    #403145

    oklch(33.8% 0.04 317.6)

  • #393920

    #393920

    oklch(33.8% 0.04 108.4)

  • #223E33

    #223E33

    oklch(33.8% 0.04 167)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403145

    #403145

    oklch(33.8% 0.04 317.6)

  • #43351F

    #43351F

    oklch(33.8% 0.04 78.1)

  • #1C3E3F

    #1C3E3F

    oklch(33.9% 0.04 198)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403145

    #403145

    oklch(33.8% 0.04 317.6)

  • #493125

    #493125

    oklch(33.8% 0.041 47.5)

  • #2D3C28

    #2D3C28

    oklch(33.7% 0.039 138)

  • #203C48

    #203C48

    oklch(33.9% 0.04 227.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #403145 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.