#312244

Closest named color: Space Cadet (#2B2D42). oklch(28.7% 0.063 303), rgb(49, 34, 68).

Aa

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

About this color

#312244 is a dark, muted purple. In OKLCH its lightness is 29%, its chroma 0.063 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.036 away. White text reads best on it, at 14.55:1.

Hue familyPurples
Lightnessdark (29%)
Chromamuted (0.063)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.44:1
White text14.55:1

Values

HEX#312244
RGBrgb(49, 34, 68)
HSLhsl(266, 33%, 20%)
OKLCHoklch(28.7% 0.063 303)

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 #312244 14.55:1 AAA Lc -104.2 Preferred for body text
Black text on #312244 1.44:1 Fails Lc 0.0 Not readable
#312244 text on white 14.55:1 AAA Lc 101.3 Preferred for body text
#312244 text on black 1.44: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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #ECE7F6

    oklch(93.6% 0.021 301.1)

  3. Step 200

    200

    #DED3F0

    oklch(88.5% 0.041 302.8)

  4. Step 300

    300

    #CAB5E9

    oklch(80.8% 0.075 303.2)

  5. Step 400

    400

    #B08EDE

    oklch(70.8% 0.119 303)

  6. Step 500

    500

    #9D6FD4

    oklch(63.1% 0.152 303.3)

  7. Step 600

    600

    #8855C1

    oklch(55.6% 0.165 303.2)

  8. Step 700

    700

    #7345A7

    oklch(49.1% 0.153 302.8)

  9. Step 800

    800

    #5E3987

    oklch(42.7% 0.127 303.3)

  10. Step 900

    900

    #4D326C

    oklch(37.7% 0.099 303.5)

  11. Step 950

    950 (this color)

    #312244

    oklch(28.7% 0.063 303)

Export this scale for Tailwind in the Tailwind colors tool

#312244 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)#1929450.043
Deuteranopia (no green cones)#1C29430.040
Tritanopia (no blue cones)#2E282F0.049
Achromatopsia (no color)#2929290.063

Harmonies

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

Complementary

The opposite hue (180°).

  • #312244

    #312244

    oklch(28.7% 0.063 303)

  • #252F06

    #252F06

    oklch(28.6% 0.062 122.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312244

    #312244

    oklch(28.7% 0.063 303)

  • #21284A

    #21284A

    oklch(28.9% 0.063 273.1)

  • #3D1E38

    #3D1E38

    oklch(28.8% 0.063 333.3)

Open the analogous palette in the generator

Split complementary

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

  • #312244

    #312244

    oklch(28.7% 0.063 303)

  • #352900

    #352900

    oklch(28.6% 0.059 91.7)

  • #0B331B

    #0B331B

    oklch(28.6% 0.062 153.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312244

    #312244

    oklch(28.7% 0.063 303)

  • #402202

    #402202

    oklch(28.6% 0.063 62.3)

  • #00332D

    #00332D

    oklch(28.8% 0.051 182.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312244

    #312244

    oklch(28.7% 0.063 303)

  • #451D15

    #451D15

    oklch(28.7% 0.064 32.8)

  • #252F06

    #252F06

    oklch(28.6% 0.062 122.4)

  • #003139

    #003139

    oklch(28.7% 0.05 211.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #312244 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.