#321A40

Closest named color: Dark Purple (#35063E). oklch(27% 0.073 311.6), rgb(50, 26, 64).

Aa

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

About this color

#321A40 is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.073 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.042 away. White text reads best on it, at 15.47:1.

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.073)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.35:1
White text15.47:1

Values

HEX#321A40
RGBrgb(50, 26, 64)
HSLhsl(278, 42%, 18%)
OKLCHoklch(27% 0.073 311.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 #321A40 15.47:1 AAA Lc -104.9 Preferred for body text
Black text on #321A40 1.35:1 Fails Lc 0.0 Not readable
#321A40 text on white 15.47:1 AAA Lc 102.2 Preferred for body text
#321A40 text on black 1.35: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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #EFE5F6

    oklch(93.5% 0.025 311.7)

  3. Step 200

    200

    #E4D1F1

    oklch(88.6% 0.048 311.7)

  4. Step 300

    300

    #D3B1EA

    oklch(80.9% 0.087 311.4)

  5. Step 400

    400

    #BD86DF

    oklch(70.7% 0.138 311.6)

  6. Step 500

    500

    #AC64D6

    oklch(63.1% 0.177 311.5)

  7. Step 600

    600

    #9847C3

    oklch(55.6% 0.193 311.8)

  8. Step 700

    700

    #8137A9

    oklch(49% 0.18 311.4)

  9. Step 800

    800

    #692F89

    oklch(42.7% 0.149 311.4)

  10. Step 900

    900

    #552B6D

    oklch(37.6% 0.115 311.5)

  11. Step 950

    950 (this color)

    #321A40

    oklch(27% 0.073 311.6)

Export this scale for Tailwind in the Tailwind colors tool

#321A40 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)#1023410.062
Deuteranopia (no green cones)#18253F0.055
Tritanopia (no blue cones)#30202A0.050
Achromatopsia (no color)#2424240.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #321A40

    #321A40

    oklch(27% 0.073 311.6)

  • #182D01

    #182D01

    oklch(26.9% 0.073 131.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #321A40

    #321A40

    oklch(27% 0.073 311.6)

  • #212049

    #212049

    oklch(26.9% 0.074 281.3)

  • #3D1530

    #3D1530

    oklch(26.9% 0.073 342)

Open the analogous palette in the generator

Split complementary

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

  • #321A40

    #321A40

    oklch(27% 0.073 311.6)

  • #2C2700

    #2C2700

    oklch(27% 0.057 102.1)

  • #002F1D

    #002F1D

    oklch(27% 0.059 161.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #321A40

    #321A40

    oklch(27% 0.073 311.6)

  • #382100

    #382100

    oklch(27.1% 0.058 71.5)

  • #002D2C

    #002D2C

    oklch(26.9% 0.046 192.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #321A40

    #321A40

    oklch(27% 0.073 311.6)

  • #431705

    #431705

    oklch(27% 0.074 41.3)

  • #182D01

    #182D01

    oklch(26.9% 0.073 131.9)

  • #002C38

    #002C38

    oklch(27.2% 0.05 221.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #321A40 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.