#40354F

Closest named color: Onyx (#343A40). oklch(35.2% 0.046 303.5), rgb(64, 53, 79).

Aa

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

About this color

#40354F is a dark, muted purple. In OKLCH its lightness is 35%, its chroma 0.046 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.041 away. White text reads best on it, at 11.41:1.

Hue familyPurples
Lightnessdark (35%)
Chromamuted (0.046)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.84:1
White text11.41:1

Values

HEX#40354F
RGBrgb(64, 53, 79)
HSLhsl(265, 20%, 26%)
OKLCHoklch(35.2% 0.046 303.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 #40354F 11.41:1 AAA Lc -100.0 Preferred for body text
Black text on #40354F 1.84:1 Fails Lc 7.6 Not readable
#40354F text on white 11.41:1 AAA Lc 96.3 Preferred for body text
#40354F text on black 1.84: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

    #DCD6E4

    oklch(88.5% 0.02 305.2)

  4. Step 300

    300

    #C5BCD4

    oklch(81% 0.035 302.6)

  5. Step 400

    400

    #A899BE

    oklch(70.8% 0.056 303.5)

  6. Step 500

    500

    #927FAD

    oklch(63.1% 0.071 303.3)

  7. Step 600

    600

    #7D6899

    oklch(55.6% 0.078 303.6)

  8. Step 700

    700

    #695682

    oklch(49% 0.072 303.7)

  9. Step 800

    800

    #56476A

    oklch(42.8% 0.059 303.6)

  10. Step 900

    900 (this color)

    #40354F

    oklch(35.2% 0.046 303.5)

  11. Step 950

    950

    #292332

    oklch(27% 0.029 302.8)

Export this scale for Tailwind in the Tailwind colors tool

#40354F 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)#303A500.029
Deuteranopia (no green cones)#323A4E0.027
Tritanopia (no blue cones)#3E393E0.037
Achromatopsia (no color)#3A3A3A0.047

Harmonies

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

Complementary

The opposite hue (180°).

  • #40354F

    #40354F

    oklch(35.2% 0.046 303.5)

  • #363F23

    #363F23

    oklch(35.1% 0.047 123.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40354F

    #40354F

    oklch(35.2% 0.046 303.5)

  • #333953

    #333953

    oklch(35.1% 0.046 273.8)

  • #4A3245

    #4A3245

    oklch(35.2% 0.046 334.2)

Open the analogous palette in the generator

Split complementary

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

  • #40354F

    #40354F

    oklch(35.2% 0.046 303.5)

  • #433B1D

    #433B1D

    oklch(35.3% 0.047 94.8)

  • #274230

    #274230

    oklch(35.1% 0.046 154.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40354F

    #40354F

    oklch(35.2% 0.046 303.5)

  • #4C3621

    #4C3621

    oklch(35.2% 0.046 64.1)

  • #1B433D

    #1B433D

    oklch(35.2% 0.046 182.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40354F

    #40354F

    oklch(35.2% 0.046 303.5)

  • #50322B

    #50322B

    oklch(35.1% 0.046 33.7)

  • #363F23

    #363F23

    oklch(35.1% 0.047 123.3)

  • #1A414A

    #1A414A

    oklch(35.1% 0.046 215.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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