#40214E

Closest named color: Deep Violet (#490648). oklch(31.1% 0.085 314.3), rgb(64, 33, 78).

Aa

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

About this color

#40214E is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.085 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.58:1.

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

Values

HEX#40214E
RGBrgb(64, 33, 78)
HSLhsl(281, 41%, 22%)
OKLCHoklch(31.1% 0.085 314.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 #40214E 13.58:1 AAA Lc -103.0 Preferred for body text
Black text on #40214E 1.54:1 Fails Lc 0.0 Not readable
#40214E text on white 13.58:1 AAA Lc 99.9 Preferred for body text
#40214E 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

    #E7CFF3

    oklch(88.5% 0.055 314.5)

  4. Step 300

    300

    #D9ADEE

    oklch(80.9% 0.101 314.6)

  5. Step 400

    400

    #C57FE6

    oklch(70.8% 0.161 314.2)

  6. Step 500

    500

    #B659DE

    oklch(63.2% 0.206 314.4)

  7. Step 600

    600

    #A137CB

    oklch(55.6% 0.224 314.4)

  8. Step 700

    700

    #8A27B0

    oklch(49.1% 0.208 314.3)

  9. Step 800

    800

    #70238E

    oklch(42.6% 0.172 314.5)

  10. Step 900

    900

    #5B2472

    oklch(37.8% 0.135 314.4)

  11. Step 950

    950 (this color)

    #40214E

    oklch(31.1% 0.085 314.3)

Export this scale for Tailwind in the Tailwind colors tool

#40214E 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)#162C500.074
Deuteranopia (no green cones)#202F4D0.066
Tritanopia (no blue cones)#3F28340.056
Achromatopsia (no color)#2E2E2E0.086

Harmonies

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

Complementary

The opposite hue (180°).

  • #40214E

    #40214E

    oklch(31.1% 0.085 314.3)

  • #1D3904

    #1D3904

    oklch(31% 0.084 134)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40214E

    #40214E

    oklch(31.1% 0.085 314.3)

  • #2D2859

    #2D2859

    oklch(31% 0.085 284.9)

  • #4D1C3B

    #4D1C3B

    oklch(31.2% 0.085 344.3)

Open the analogous palette in the generator

Split complementary

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

  • #40214E

    #40214E

    oklch(31.1% 0.085 314.3)

  • #363200

    #363200

    oklch(31.1% 0.066 104.7)

  • #003B28

    #003B28

    oklch(31.2% 0.066 164.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40214E

    #40214E

    oklch(31.1% 0.085 314.3)

  • #442B00

    #442B00

    oklch(31.2% 0.066 74.8)

  • #003939

    #003939

    oklch(31.2% 0.053 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40214E

    #40214E

    oklch(31.1% 0.085 314.3)

  • #521F04

    #521F04

    oklch(31.1% 0.085 44.5)

  • #1D3904

    #1D3904

    oklch(31% 0.084 134)

  • #003646

    #003646

    oklch(30.9% 0.058 224.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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