#312338

Closest named color: Space Cadet (#2B2D42). oklch(28.2% 0.042 314.1), rgb(49, 35, 56).

Aa

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

About this color

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

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

Values

HEX#312338
RGBrgb(49, 35, 56)
HSLhsl(280, 23%, 18%)
OKLCHoklch(28.2% 0.042 314.1)

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 #312338 14.70:1 AAA Lc -104.3 Preferred for body text
Black text on #312338 1.42:1 Fails Lc 0.0 Not readable
#312338 text on white 14.70:1 AAA Lc 101.5 Preferred for body text
#312338 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

    #F7F4F9

    oklch(97.1% 0.007 312.3)

  2. Step 100

    100

    #EDE7F1

    oklch(93.6% 0.015 312.2)

  3. Step 200

    200

    #E0D4E6

    oklch(88.5% 0.028 314.7)

  4. Step 300

    300

    #CDB8D8

    oklch(81% 0.05 314.1)

  5. Step 400

    400

    #B392C4

    oklch(70.7% 0.08 314)

  6. Step 500

    500

    #A076B5

    oklch(63.1% 0.103 314)

  7. Step 600

    600

    #8B5EA0

    oklch(55.6% 0.111 314.4)

  8. Step 700

    700

    #764D89

    oklch(49% 0.104 314.4)

  9. Step 800

    800

    #60406F

    oklch(42.7% 0.084 314.4)

  10. Step 900

    900

    #4E365A

    oklch(37.6% 0.067 313.9)

  11. Step 950

    950 (this color)

    #312338

    oklch(28.2% 0.042 314.1)

Export this scale for Tailwind in the Tailwind colors tool

#312338 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)#2027390.032
Deuteranopia (no green cones)#2329370.031
Tritanopia (no blue cones)#31262B0.029
Achromatopsia (no color)#2828280.042

Harmonies

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

Complementary

The opposite hue (180°).

  • #312338

    #312338

    oklch(28.2% 0.042 314.1)

  • #212E18

    #212E18

    oklch(28.2% 0.042 133.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312338

    #312338

    oklch(28.2% 0.042 314.1)

  • #27263E

    #27263E

    oklch(28.2% 0.044 285.1)

  • #38212E

    #38212E

    oklch(28.2% 0.041 345.1)

Open the analogous palette in the generator

Split complementary

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

  • #312338

    #312338

    oklch(28.2% 0.042 314.1)

  • #2D2A10

    #2D2A10

    oklch(28.1% 0.042 102.7)

  • #133024

    #133024

    oklch(28.2% 0.042 164.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312338

    #312338

    oklch(28.2% 0.042 314.1)

  • #362610

    #362610

    oklch(28.2% 0.042 73.4)

  • #09302F

    #09302F

    oklch(28.3% 0.042 192.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312338

    #312338

    oklch(28.2% 0.042 314.1)

  • #3B2218

    #3B2218

    oklch(28.2% 0.043 42.5)

  • #212E18

    #212E18

    oklch(28.2% 0.042 133.4)

  • #0E2E39

    #0E2E39

    oklch(28.3% 0.042 224)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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