#40245E

Closest named color: Plum Purple (#4E0550). oklch(32.7% 0.101 303.6), rgb(64, 36, 94).

Aa

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

About this color

#40245E is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.101 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Plum Purple (#4E0550), ΔE 0.062 away. White text reads best on it, at 12.86:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.101)
Temperaturein between
Nearest namePlum Purple (#4E0550)
Black text1.63:1
White text12.86:1

Values

HEX#40245E
RGBrgb(64, 36, 94)
HSLhsl(269, 45%, 25%)
OKLCHoklch(32.7% 0.101 303.6)

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 #40245E 12.86:1 AAA Lc -102.1 Preferred for body text
Black text on #40245E 1.63:1 Fails Lc 0.0 Not readable
#40245E text on white 12.86:1 AAA Lc 98.7 Preferred for body text
#40245E 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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EDE7F6

    oklch(93.7% 0.021 304)

  3. Step 200

    200

    #DFD3F0

    oklch(88.5% 0.041 304.3)

  4. Step 300

    300

    #CBB5E9

    oklch(80.9% 0.076 304)

  5. Step 400

    400

    #B18DDE

    oklch(70.7% 0.121 303.9)

  6. Step 500

    500

    #9E6ED5

    oklch(63.1% 0.156 303.8)

  7. Step 600

    600

    #8954C2

    oklch(55.6% 0.168 303.6)

  8. Step 700

    700

    #7444A8

    oklch(49.2% 0.156 303.2)

  9. Step 800

    800

    #5E3888

    oklch(42.6% 0.13 303.2)

  10. Step 900

    900 (this color)

    #40245E

    oklch(32.7% 0.101 303.6)

  11. Step 950

    950

    #2D1D40

    oklch(26.9% 0.065 303.4)

Export this scale for Tailwind in the Tailwind colors tool

#40245E 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)#0B31600.079
Deuteranopia (no green cones)#17325D0.072
Tritanopia (no blue cones)#3A2F3D0.074
Achromatopsia (no color)#3232320.101

Harmonies

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

Complementary

The opposite hue (180°).

  • #40245E

    #40245E

    oklch(32.7% 0.101 303.6)

  • #2D3B00

    #2D3B00

    oklch(32.8% 0.081 123.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40245E

    #40245E

    oklch(32.7% 0.101 303.6)

  • #262E67

    #262E67

    oklch(32.8% 0.1 273.6)

  • #521C4A

    #521C4A

    oklch(32.8% 0.102 333.8)

Open the analogous palette in the generator

Split complementary

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

  • #40245E

    #40245E

    oklch(32.7% 0.101 303.6)

  • #403300

    #403300

    oklch(32.6% 0.067 93.2)

  • #00401F

    #00401F

    oklch(32.6% 0.083 153.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40245E

    #40245E

    oklch(32.7% 0.101 303.6)

  • #4F2B00

    #4F2B00

    oklch(32.9% 0.075 63.5)

  • #003E38

    #003E38

    oklch(32.7% 0.058 184.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40245E

    #40245E

    oklch(32.7% 0.101 303.6)

  • #5E1A0C

    #5E1A0C

    oklch(32.7% 0.102 33.4)

  • #2D3B00

    #2D3B00

    oklch(32.8% 0.081 123.2)

  • #003C46

    #003C46

    oklch(32.7% 0.057 212.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40245E 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.