#312336

Closest named color: Space Cadet (#2B2D42). oklch(28.1% 0.039 317), rgb(49, 35, 54).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (28%)
Chromamuted (0.039)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.42:1
White text14.74:1

Values

HEX#312336
RGBrgb(49, 35, 54)
HSLhsl(284, 21%, 17%)
OKLCHoklch(28.1% 0.039 317)

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 #312336 14.74:1 AAA Lc -104.4 Preferred for body text
Black text on #312336 1.42:1 Fails Lc 0.0 Not readable
#312336 text on white 14.74:1 AAA Lc 101.5 Preferred for body text
#312336 text on black 1.42: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

    #F7F4F8

    oklch(97.1% 0.006 317.8)

  2. Step 100

    100

    #EEE7F0

    oklch(93.6% 0.014 318.7)

  3. Step 200

    200

    #E0D4E5

    oklch(88.5% 0.026 316.1)

  4. Step 300

    300

    #CDB8D5

    oklch(80.9% 0.046 316.7)

  5. Step 400

    400

    #B492C0

    oklch(70.7% 0.076 317.2)

  6. Step 500

    500

    #A177B0

    oklch(63.1% 0.096 317)

  7. Step 600

    600

    #8C5F9B

    oklch(55.6% 0.104 317.4)

  8. Step 700

    700

    #764E85

    oklch(49% 0.097 316.4)

  9. Step 800

    800

    #60406C

    oklch(42.6% 0.08 316.4)

  10. Step 900

    900

    #4F3757

    oklch(37.7% 0.061 317.5)

  11. Step 950

    950 (this color)

    #312336

    oklch(28.1% 0.039 317)

Export this scale for Tailwind in the Tailwind colors tool

#312336 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)#2027370.032
Deuteranopia (no green cones)#2428350.028
Tritanopia (no blue cones)#31252A0.025
Achromatopsia (no color)#2828280.039

Harmonies

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

Complementary

The opposite hue (180°).

  • #312336

    #312336

    oklch(28.1% 0.039 317)

  • #202E1A

    #202E1A

    oklch(28.2% 0.04 136.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312336

    #312336

    oklch(28.1% 0.039 317)

  • #28263C

    #28263C

    oklch(28.1% 0.04 287.7)

  • #37212D

    #37212D

    oklch(28% 0.039 346)

Open the analogous palette in the generator

Split complementary

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

  • #312336

    #312336

    oklch(28.1% 0.039 317)

  • #2B2A13

    #2B2A13

    oklch(28% 0.038 106.4)

  • #142F25

    #142F25

    oklch(28% 0.038 167.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312336

    #312336

    oklch(28.1% 0.039 317)

  • #342712

    #342712

    oklch(28.2% 0.039 78.1)

  • #0C2F30

    #0C2F30

    oklch(28.1% 0.039 197.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312336

    #312336

    oklch(28.1% 0.039 317)

  • #392318

    #392318

    oklch(28.1% 0.039 47.2)

  • #202E1A

    #202E1A

    oklch(28.2% 0.04 136.7)

  • #112D38

    #112D38

    oklch(28.1% 0.039 226.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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