#31324E

Closest named color: Space Cadet (#2B2D42). oklch(32.9% 0.049 281.8), rgb(49, 50, 78).

Aa

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

About this color

#31324E is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.049 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.027 away. White text reads best on it, at 12.37:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.049)
Temperaturecool
Nearest nameSpace Cadet (#2B2D42)
Black text1.69:1
White text12.37:1

Values

HEX#31324E
RGBrgb(49, 50, 78)
HSLhsl(238, 23%, 25%)
OKLCHoklch(32.9% 0.049 281.8)

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 #31324E 12.37:1 AAA Lc -101.6 Preferred for body text
Black text on #31324E 1.69:1 Fails Lc 0.0 Not readable
#31324E text on white 12.37:1 AAA Lc 98.2 Preferred for body text
#31324E text on black 1.69: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 900.

  1. Step 50

    50

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E8E9F1

    oklch(93.6% 0.011 280.5)

  3. Step 200

    200

    #D6D8E7

    oklch(88.5% 0.021 279.9)

  4. Step 300

    300

    #BCBED9

    oklch(80.9% 0.038 282.2)

  5. Step 400

    400

    #9A9DC5

    oklch(70.8% 0.058 281.4)

  6. Step 500

    500

    #8284B7

    oklch(63.1% 0.076 282.2)

  7. Step 600

    600

    #6B6DA2

    oklch(55.5% 0.082 281.7)

  8. Step 700

    700

    #5A5B8B

    oklch(49.1% 0.076 282.3)

  9. Step 800

    800

    #494B71

    oklch(42.8% 0.063 281.1)

  10. Step 900

    900 (this color)

    #31324E

    oklch(32.9% 0.049 281.8)

  11. Step 950

    950

    #242535

    oklch(27.1% 0.03 281.4)

Export this scale for Tailwind in the Tailwind colors tool

#31324E 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)#29354F0.015
Deuteranopia (no green cones)#28334D0.015
Tritanopia (no blue cones)#29373C0.043
Achromatopsia (no color)#3434340.049

Harmonies

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

Complementary

The opposite hue (180°).

  • #31324E

    #31324E

    oklch(32.9% 0.049 281.8)

  • #3A3616

    #3A3616

    oklch(32.9% 0.049 102.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31324E

    #31324E

    oklch(32.9% 0.049 281.8)

  • #22374E

    #22374E

    oklch(33% 0.049 251.6)

  • #3E2E48

    #3E2E48

    oklch(33.1% 0.049 311.9)

Open the analogous palette in the generator

Split complementary

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

  • #31324E

    #31324E

    oklch(32.9% 0.049 281.8)

  • #453117

    #453117

    oklch(33% 0.049 71.9)

  • #2C3B1F

    #2C3B1F

    oklch(33.1% 0.05 131.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31324E

    #31324E

    oklch(32.9% 0.049 281.8)

  • #4B2C21

    #4B2C21

    oklch(32.9% 0.05 40.3)

  • #1B3D2D

    #1B3D2D

    oklch(32.9% 0.049 161.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31324E

    #31324E

    oklch(32.9% 0.049 281.8)

  • #4B2A2F

    #4B2A2F

    oklch(32.9% 0.05 10.4)

  • #3A3616

    #3A3616

    oklch(32.9% 0.049 102.2)

  • #0E3D3C

    #0E3D3C

    oklch(32.9% 0.049 193)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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