#40294F

Closest named color: Space Cadet (#2B2D42). oklch(32.7% 0.071 310.9), rgb(64, 41, 79).

Aa

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

About this color

#40294F is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.071 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.048 away. White text reads best on it, at 12.74:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.071)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.64:1
White text12.74:1

Values

HEX#40294F
RGBrgb(64, 41, 79)
HSLhsl(276, 32%, 24%)
OKLCHoklch(32.7% 0.071 310.9)

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 #40294F 12.74:1 AAA Lc -102.0 Preferred for body text
Black text on #40294F 1.64:1 Fails Lc 0.0 Not readable
#40294F text on white 12.74:1 AAA Lc 98.7 Preferred for body text
#40294F text on black 1.64: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

    #F7F4F9

    oklch(97.1% 0.007 312.3)

  2. Step 100

    100

    #EDE7F2

    oklch(93.6% 0.016 310.1)

  3. Step 200

    200

    #DFD4E8

    oklch(88.5% 0.03 310.1)

  4. Step 300

    300

    #CCB7DA

    oklch(80.8% 0.054 311.9)

  5. Step 400

    400

    #B292C8

    oklch(70.8% 0.085 311.1)

  6. Step 500

    500

    #9E76BA

    oklch(63.1% 0.108 310.5)

  7. Step 600

    600

    #895EA6

    oklch(55.6% 0.117 310.6)

  8. Step 700

    700

    #744D8E

    oklch(49.1% 0.109 310.6)

  9. Step 800

    800

    #5F3F73

    oklch(42.6% 0.091 311.4)

  10. Step 900

    900 (this color)

    #40294F

    oklch(32.7% 0.071 310.9)

  11. Step 950

    950

    #2D2037

    oklch(27% 0.045 309.5)

Export this scale for Tailwind in the Tailwind colors tool

#40294F 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)#2131500.055
Deuteranopia (no green cones)#27334E0.051
Tritanopia (no blue cones)#3E2F380.050
Achromatopsia (no color)#3232320.071

Harmonies

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

Complementary

The opposite hue (180°).

  • #40294F

    #40294F

    oklch(32.7% 0.071 310.9)

  • #273C11

    #273C11

    oklch(32.8% 0.072 131.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40294F

    #40294F

    oklch(32.7% 0.071 310.9)

  • #2E2F58

    #2E2F58

    oklch(32.6% 0.072 280.6)

  • #4C253F

    #4C253F

    oklch(32.7% 0.07 341.2)

Open the analogous palette in the generator

Split complementary

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

  • #40294F

    #40294F

    oklch(32.7% 0.071 310.9)

  • #3C3500

    #3C3500

    oklch(32.6% 0.068 101.2)

  • #033F28

    #033F28

    oklch(32.6% 0.071 160.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40294F

    #40294F

    oklch(32.7% 0.071 310.9)

  • #4B2D00

    #4B2D00

    oklch(32.7% 0.071 70.3)

  • #003D3B

    #003D3B

    oklch(32.5% 0.056 191.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40294F

    #40294F

    oklch(32.7% 0.071 310.9)

  • #522616

    #522616

    oklch(32.6% 0.071 40.2)

  • #273C11

    #273C11

    oklch(32.8% 0.072 131.4)

  • #003B4A

    #003B4A

    oklch(32.6% 0.06 221.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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