#40264F

Closest named color: Space Cadet (#2B2D42). oklch(32.1% 0.077 312), rgb(64, 38, 79).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (32%)
Chromamoderately saturated (0.077)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.60:1
White text13.05:1

Values

HEX#40264F
RGBrgb(64, 38, 79)
HSLhsl(278, 35%, 23%)
OKLCHoklch(32.1% 0.077 312)

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 #40264F 13.05:1 AAA Lc -102.4 Preferred for body text
Black text on #40264F 1.60:1 Fails Lc 0.0 Not readable
#40264F text on white 13.05:1 AAA Lc 99.2 Preferred for body text
#40264F text on black 1.60: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 950.

  1. Step 50

    50

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #F0E5F7

    oklch(93.6% 0.027 312.6)

  3. Step 200

    200

    #E4D0F2

    oklch(88.4% 0.051 311.5)

  4. Step 300

    300

    #D4B0EC

    oklch(80.9% 0.091 311.5)

  5. Step 400

    400

    #BF84E2

    oklch(70.8% 0.146 312)

  6. Step 500

    500

    #AE61D9

    oklch(63% 0.186 311.9)

  7. Step 600

    600

    #9A43C6

    oklch(55.6% 0.202 312.2)

  8. Step 700

    700

    #8333AB

    oklch(49% 0.188 312)

  9. Step 800

    800

    #6B2C8B

    oklch(42.7% 0.156 312.1)

  10. Step 900

    900

    #57296F

    oklch(37.7% 0.122 312.3)

  11. Step 950

    950 (this color)

    #40264F

    oklch(32.1% 0.077 312)

Export this scale for Tailwind in the Tailwind colors tool

#40264F 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)#1D2F500.062
Deuteranopia (no green cones)#24314E0.056
Tritanopia (no blue cones)#3E2C360.053
Achromatopsia (no color)#3131310.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #40264F

    #40264F

    oklch(32.1% 0.077 312)

  • #243B0B

    #243B0B

    oklch(32.2% 0.077 131.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40264F

    #40264F

    oklch(32.1% 0.077 312)

  • #2E2D59

    #2E2D59

    oklch(32.2% 0.077 282.2)

  • #4D213E

    #4D213E

    oklch(32.1% 0.078 342.2)

Open the analogous palette in the generator

Split complementary

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

  • #40264F

    #40264F

    oklch(32.1% 0.077 312)

  • #3A3400

    #3A3400

    oklch(32.1% 0.067 102.4)

  • #003E28

    #003E28

    oklch(32.2% 0.07 162.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40264F

    #40264F

    oklch(32.1% 0.077 312)

  • #482C00

    #482C00

    oklch(32% 0.069 71.9)

  • #003C3A

    #003C3A

    oklch(32.2% 0.055 191.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40264F

    #40264F

    oklch(32.1% 0.077 312)

  • #522310

    #522310

    oklch(32% 0.076 41.5)

  • #243B0B

    #243B0B

    oklch(32.2% 0.077 131.8)

  • #003949

    #003949

    oklch(32% 0.06 223.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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