#40344F

Closest named color: Onyx (#343A40). oklch(35% 0.048 304.4), rgb(64, 52, 79).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (35%)
Chromamuted (0.048)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.82:1
White text11.52:1

Values

HEX#40344F
RGBrgb(64, 52, 79)
HSLhsl(267, 21%, 26%)
OKLCHoklch(35% 0.048 304.4)

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 #40344F 11.52:1 AAA Lc -100.2 Preferred for body text
Black text on #40344F 1.82:1 Fails Lc 7.4 Not readable
#40344F text on white 11.52:1 AAA Lc 96.5 Preferred for body text
#40344F text on black 1.82: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

    #EBE8F0

    oklch(93.6% 0.011 303.1)

  3. Step 200

    200

    #DCD6E4

    oklch(88.5% 0.02 305.2)

  4. Step 300

    300

    #C6BBD4

    oklch(80.9% 0.037 305.4)

  5. Step 400

    400

    #A898BE

    oklch(70.6% 0.057 304.1)

  6. Step 500

    500

    #937EAE

    oklch(63% 0.074 304.3)

  7. Step 600

    600

    #7E679A

    oklch(55.6% 0.081 304.6)

  8. Step 700

    700

    #6A5683

    oklch(49.1% 0.074 304.2)

  9. Step 800

    800

    #57466B

    oklch(42.7% 0.063 304.9)

  10. Step 900

    900 (this color)

    #40344F

    oklch(35% 0.048 304.4)

  11. Step 950

    950

    #2A2333

    oklch(27.1% 0.031 304.4)

Export this scale for Tailwind in the Tailwind colors tool

#40344F 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)#2F39500.031
Deuteranopia (no green cones)#31394E0.029
Tritanopia (no blue cones)#3E383E0.037
Achromatopsia (no color)#3939390.049

Harmonies

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

Complementary

The opposite hue (180°).

  • #40344F

    #40344F

    oklch(35% 0.048 304.4)

  • #353F22

    #353F22

    oklch(35% 0.049 124.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40344F

    #40344F

    oklch(35% 0.048 304.4)

  • #333854

    #333854

    oklch(34.9% 0.049 275.8)

  • #4A3145

    #4A3145

    oklch(35% 0.048 333.9)

Open the analogous palette in the generator

Split complementary

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

  • #40344F

    #40344F

    oklch(35% 0.048 304.4)

  • #433A1B

    #433A1B

    oklch(35% 0.049 93.5)

  • #25422F

    #25422F

    oklch(35% 0.048 154.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40344F

    #40344F

    oklch(35% 0.048 304.4)

  • #4C351E

    #4C351E

    oklch(35% 0.049 65.1)

  • #17433D

    #17433D

    oklch(35% 0.049 183.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40344F

    #40344F

    oklch(35% 0.048 304.4)

  • #513129

    #513129

    oklch(35% 0.049 34.7)

  • #353F22

    #353F22

    oklch(35% 0.049 124.4)

  • #17414A

    #17414A

    oklch(35% 0.048 214.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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