#31213B

Closest named color: Space Cadet (#2B2D42). oklch(27.9% 0.051 311.6), rgb(49, 33, 59).

Aa

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

About this color

#31213B is a dark, muted purple. In OKLCH its lightness is 28%, its chroma 0.051 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.038 away. White text reads best on it, at 14.88:1.

Hue familyPurples
Lightnessdark (28%)
Chromamuted (0.051)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.41:1
White text14.88:1

Values

HEX#31213B
RGBrgb(49, 33, 59)
HSLhsl(277, 28%, 18%)
OKLCHoklch(27.9% 0.051 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 #31213B 14.88:1 AAA Lc -104.5 Preferred for body text
Black text on #31213B 1.41:1 Fails Lc 0.0 Not readable
#31213B text on white 14.88:1 AAA Lc 101.7 Preferred for body text
#31213B text on black 1.41: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

    #F7F4F9

    oklch(97.1% 0.007 312.3)

  2. Step 100

    100

    #EEE7F3

    oklch(93.7% 0.018 311.6)

  3. Step 200

    200

    #E0D3EA

    oklch(88.4% 0.034 310.7)

  4. Step 300

    300

    #CEB6DE

    oklch(80.9% 0.061 311.8)

  5. Step 400

    400

    #B58FCD

    oklch(70.7% 0.097 311.9)

  6. Step 500

    500

    #A272C0

    oklch(63.1% 0.124 311.5)

  7. Step 600

    600

    #8D59AC

    oklch(55.6% 0.135 311.6)

  8. Step 700

    700

    #784994

    oklch(49.2% 0.125 311.5)

  9. Step 800

    800

    #613C78

    oklch(42.6% 0.104 311.2)

  10. Step 900

    900

    #503460

    oklch(37.7% 0.08 312.3)

  11. Step 950

    950 (this color)

    #31213B

    oklch(27.9% 0.051 311.6)

Export this scale for Tailwind in the Tailwind colors tool

#31213B 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)#1C263C0.039
Deuteranopia (no green cones)#20283A0.037
Tritanopia (no blue cones)#30252B0.036
Achromatopsia (no color)#2727270.051

Harmonies

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

Complementary

The opposite hue (180°).

  • #31213B

    #31213B

    oklch(27.9% 0.051 311.6)

  • #1F2E12

    #1F2E12

    oklch(28% 0.051 132.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31213B

    #31213B

    oklch(27.9% 0.051 311.6)

  • #252541

    #252541

    oklch(27.9% 0.051 282.6)

  • #3A1E30

    #3A1E30

    oklch(28% 0.052 341.9)

Open the analogous palette in the generator

Split complementary

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

  • #31213B

    #31213B

    oklch(27.9% 0.051 311.6)

  • #2E2907

    #2E2907

    oklch(27.9% 0.05 100.8)

  • #0C3021

    #0C3021

    oklch(27.8% 0.05 162.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31213B

    #31213B

    oklch(27.9% 0.051 311.6)

  • #382408

    #382408

    oklch(27.9% 0.051 71.7)

  • #00302F

    #00302F

    oklch(27.9% 0.048 192.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31213B

    #31213B

    oklch(27.9% 0.051 311.6)

  • #3E2014

    #3E2014

    oklch(28.1% 0.051 42.2)

  • #1F2E12

    #1F2E12

    oklch(28% 0.051 132.1)

  • #012E3B

    #012E3B

    oklch(28% 0.051 222.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31213B 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.