#40224F

Closest named color: Deep Violet (#490648). oklch(31.3% 0.085 313.3), rgb(64, 34, 79).

Aa

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

About this color

#40224F is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.085 and its hue 313°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.054 away. White text reads best on it, at 13.46:1.

Hue familyPurples
Lightnessdark (31%)
Chromamoderately saturated (0.085)
Temperaturein between
Nearest nameDeep Violet (#490648)
Black text1.55:1
White text13.46:1

Values

HEX#40224F
RGBrgb(64, 34, 79)
HSLhsl(280, 40%, 22%)
OKLCHoklch(31.3% 0.085 313.3)

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 #40224F 13.46:1 AAA Lc -102.9 Preferred for body text
Black text on #40224F 1.55:1 Fails Lc 0.0 Not readable
#40224F text on white 13.46:1 AAA Lc 99.7 Preferred for body text
#40224F text on black 1.55: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

    #F9F3FC

    oklch(97.1% 0.013 314.8)

  2. Step 100

    100

    #F1E5F8

    oklch(93.7% 0.028 313.4)

  3. Step 200

    200

    #E6CFF4

    oklch(88.5% 0.056 312.8)

  4. Step 300

    300

    #D8AEEF

    oklch(81% 0.1 313.4)

  5. Step 400

    400

    #C380E6

    oklch(70.7% 0.159 313.2)

  6. Step 500

    500

    #B45ADF

    oklch(63.2% 0.205 313.3)

  7. Step 600

    600

    #9F39CC

    oklch(55.5% 0.222 313.2)

  8. Step 700

    700

    #8829B1

    oklch(49.1% 0.207 313.1)

  9. Step 800

    800

    #6F258F

    oklch(42.8% 0.171 313.5)

  10. Step 900

    900

    #5A2572

    oklch(37.8% 0.133 313.6)

  11. Step 950

    950 (this color)

    #40224F

    oklch(31.3% 0.085 313.3)

Export this scale for Tailwind in the Tailwind colors tool

#40224F 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)#172D510.072
Deuteranopia (no green cones)#202F4E0.065
Tritanopia (no blue cones)#3F29350.056
Achromatopsia (no color)#2F2F2F0.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #40224F

    #40224F

    oklch(31.3% 0.085 313.3)

  • #1F3A04

    #1F3A04

    oklch(31.5% 0.085 133.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40224F

    #40224F

    oklch(31.3% 0.085 313.3)

  • #2C295A

    #2C295A

    oklch(31.2% 0.085 283.1)

  • #4D1D3C

    #4D1D3C

    oklch(31.4% 0.084 343.4)

Open the analogous palette in the generator

Split complementary

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

  • #40224F

    #40224F

    oklch(31.3% 0.085 313.3)

  • #373200

    #373200

    oklch(31.3% 0.066 103.4)

  • #003B27

    #003B27

    oklch(31.2% 0.067 163.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40224F

    #40224F

    oklch(31.3% 0.085 313.3)

  • #452B00

    #452B00

    oklch(31.3% 0.067 73.7)

  • #003A39

    #003A39

    oklch(31.5% 0.054 192.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40224F

    #40224F

    oklch(31.3% 0.085 313.3)

  • #531F06

    #531F06

    oklch(31.3% 0.085 42.9)

  • #1F3A04

    #1F3A04

    oklch(31.5% 0.085 133.2)

  • #003747

    #003747

    oklch(31.3% 0.059 224)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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