#40214F

Closest named color: Deep Violet (#490648). oklch(31.2% 0.086 313.6), rgb(64, 33, 79).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (31%)
Chromamoderately saturated (0.086)
Temperaturein between
Nearest nameDeep Violet (#490648)
Black text1.54:1
White text13.56:1

Values

HEX#40214F
RGBrgb(64, 33, 79)
HSLhsl(280, 41%, 22%)
OKLCHoklch(31.2% 0.086 313.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 #40214F 13.56:1 AAA Lc -103.0 Preferred for body text
Black text on #40214F 1.54:1 Fails Lc 0.0 Not readable
#40214F text on white 13.56:1 AAA Lc 99.8 Preferred for body text
#40214F text on black 1.54: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

    #F1E4F8

    oklch(93.5% 0.03 314)

  3. Step 200

    200

    #E7CFF4

    oklch(88.6% 0.056 313.8)

  4. Step 300

    300

    #D8ADF0

    oklch(80.9% 0.103 313.2)

  5. Step 400

    400

    #C57EE8

    oklch(70.7% 0.165 313.7)

  6. Step 500

    500

    #B558E0

    oklch(63.1% 0.209 313.6)

  7. Step 600

    600

    #A136CE

    oklch(55.7% 0.227 313.6)

  8. Step 700

    700

    #8A26B2

    oklch(49.2% 0.211 313.8)

  9. Step 800

    800

    #702290

    oklch(42.7% 0.176 313.8)

  10. Step 900

    900

    #5A2373

    oklch(37.6% 0.137 313.4)

  11. Step 950

    950 (this color)

    #40214F

    oklch(31.2% 0.086 313.6)

Export this scale for Tailwind in the Tailwind colors tool

#40214F 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)#162C510.074
Deuteranopia (no green cones)#202F4E0.066
Tritanopia (no blue cones)#3F28340.058
Achromatopsia (no color)#2E2E2E0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #40214F

    #40214F

    oklch(31.2% 0.086 313.6)

  • #1D3902

    #1D3902

    oklch(31% 0.086 133.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40214F

    #40214F

    oklch(31.2% 0.086 313.6)

  • #2C295A

    #2C295A

    oklch(31.2% 0.085 283.1)

  • #4D1B3C

    #4D1B3C

    oklch(31.1% 0.087 343)

Open the analogous palette in the generator

Split complementary

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

  • #40214F

    #40214F

    oklch(31.2% 0.086 313.6)

  • #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.

  • #40214F

    #40214F

    oklch(31.2% 0.086 313.6)

  • #442B00

    #442B00

    oklch(31.2% 0.066 74.8)

  • #003938

    #003938

    oklch(31.2% 0.053 192.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40214F

    #40214F

    oklch(31.2% 0.086 313.6)

  • #531E04

    #531E04

    oklch(31.2% 0.087 43.1)

  • #1D3902

    #1D3902

    oklch(31% 0.086 133.6)

  • #003746

    #003746

    oklch(31.2% 0.058 222.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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