#40294A

Closest named color: Space Cadet (#2B2D42). oklch(32.4% 0.064 315.1), rgb(64, 41, 74).

Aa

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

About this color

#40294A is a dark, muted purple. In OKLCH its lightness is 32%, its chroma 0.064 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.044 away. White text reads best on it, at 12.85:1.

Hue familyPurples
Lightnessdark (32%)
Chromamuted (0.064)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.63:1
White text12.85:1

Values

HEX#40294A
RGBrgb(64, 41, 74)
HSLhsl(282, 29%, 23%)
OKLCHoklch(32.4% 0.064 315.1)

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 #40294A 12.85:1 AAA Lc -102.2 Preferred for body text
Black text on #40294A 1.63:1 Fails Lc 0.0 Not readable
#40294A text on white 12.85:1 AAA Lc 98.9 Preferred for body text
#40294A text on black 1.63: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

    #F7F4F8

    oklch(97.1% 0.006 317.8)

  2. Step 100

    100

    #EDE7F0

    oklch(93.5% 0.014 314.8)

  3. Step 200

    200

    #E0D4E5

    oklch(88.5% 0.026 316.1)

  4. Step 300

    300

    #CDB8D6

    oklch(81% 0.047 315.8)

  5. Step 400

    400

    #B392C2

    oklch(70.6% 0.078 315.1)

  6. Step 500

    500

    #A077B2

    oklch(63.1% 0.098 315.2)

  7. Step 600

    600

    #8B5F9E

    oklch(55.6% 0.107 315.2)

  8. Step 700

    700

    #764E87

    oklch(49.1% 0.099 315.3)

  9. Step 800

    800

    #60406E

    oklch(42.7% 0.083 315.1)

  10. Step 900

    900 (this color)

    #40294A

    oklch(32.4% 0.064 315.1)

  11. Step 950

    950

    #2E2034

    oklch(27% 0.041 315.5)

Export this scale for Tailwind in the Tailwind colors tool

#40294A 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)#23304B0.053
Deuteranopia (no green cones)#2933490.049
Tritanopia (no blue cones)#3F2D360.042
Achromatopsia (no color)#3232320.064

Harmonies

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

Complementary

The opposite hue (180°).

  • #40294A

    #40294A

    oklch(32.4% 0.064 315.1)

  • #253B18

    #253B18

    oklch(32.4% 0.064 135.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40294A

    #40294A

    oklch(32.4% 0.064 315.1)

  • #312E53

    #312E53

    oklch(32.3% 0.065 285.9)

  • #4A253B

    #4A253B

    oklch(32.2% 0.064 344.7)

Open the analogous palette in the generator

Split complementary

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

  • #40294A

    #40294A

    oklch(32.4% 0.064 315.1)

  • #393506

    #393506

    oklch(32.3% 0.063 104.4)

  • #063E2C

    #063E2C

    oklch(32.4% 0.064 165.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40294A

    #40294A

    oklch(32.4% 0.064 315.1)

  • #462E05

    #462E05

    oklch(32.2% 0.064 75.3)

  • #003C3D

    #003C3D

    oklch(32.3% 0.055 196.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40294A

    #40294A

    oklch(32.4% 0.064 315.1)

  • #4E2816

    #4E2816

    oklch(32.3% 0.064 45.1)

  • #253B18

    #253B18

    oklch(32.4% 0.064 135.1)

  • #003A4B

    #003A4B

    oklch(32.4% 0.061 224.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40294A 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.