#312341

Closest named color: Space Cadet (#2B2D42). oklch(28.7% 0.056 304.6), rgb(49, 35, 65).

Aa

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

About this color

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

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

Values

HEX#312341
RGBrgb(49, 35, 65)
HSLhsl(268, 30%, 20%)
OKLCHoklch(28.7% 0.056 304.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 #312341 14.50:1 AAA Lc -104.1 Preferred for body text
Black text on #312341 1.44:1 Fails Lc 0.0 Not readable
#312341 text on white 14.50:1 AAA Lc 101.2 Preferred for body text
#312341 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

    #F7F4FA

    oklch(97.1% 0.009 308.4)

  2. Step 100

    100

    #EDE7F5

    oklch(93.7% 0.02 305.3)

  3. Step 200

    200

    #DED4ED

    oklch(88.6% 0.036 303.8)

  4. Step 300

    300

    #CAB6E4

    oklch(80.8% 0.067 304.7)

  5. Step 400

    400

    #B090D6

    oklch(70.8% 0.105 304.8)

  6. Step 500

    500

    #9C72CB

    oklch(63% 0.136 304.6)

  7. Step 600

    600

    #8759B8

    oklch(55.6% 0.148 304.4)

  8. Step 700

    700

    #73489E

    oklch(49% 0.138 305)

  9. Step 800

    800

    #5D3C80

    oklch(42.6% 0.113 304.5)

  10. Step 900

    900

    #4C3467

    oklch(37.7% 0.088 304.2)

  11. Step 950

    950 (this color)

    #312341

    oklch(28.7% 0.056 304.6)

Export this scale for Tailwind in the Tailwind colors tool

#312341 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)#1C29420.039
Deuteranopia (no green cones)#1F29400.035
Tritanopia (no blue cones)#2E282E0.044
Achromatopsia (no color)#2929290.056

Harmonies

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

Complementary

The opposite hue (180°).

  • #312341

    #312341

    oklch(28.7% 0.056 304.6)

  • #252F0D

    #252F0D

    oklch(28.7% 0.056 123.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312341

    #312341

    oklch(28.7% 0.056 304.6)

  • #222846

    #222846

    oklch(28.7% 0.056 273.8)

  • #3B1F36

    #3B1F36

    oklch(28.6% 0.057 333.8)

Open the analogous palette in the generator

Split complementary

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

  • #312341

    #312341

    oklch(28.7% 0.056 304.6)

  • #342A03

    #342A03

    oklch(28.8% 0.056 94)

  • #0F331E

    #0F331E

    oklch(28.8% 0.057 154.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312341

    #312341

    oklch(28.7% 0.056 304.6)

  • #3E2408

    #3E2408

    oklch(28.8% 0.056 63.8)

  • #00332E

    #00332E

    oklch(28.9% 0.051 184.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312341

    #312341

    oklch(28.7% 0.056 304.6)

  • #421F17

    #421F17

    oklch(28.6% 0.056 34)

  • #252F0D

    #252F0D

    oklch(28.7% 0.056 123.7)

  • #00313A

    #00313A

    oklch(28.8% 0.051 213.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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