#312640

Closest named color: Space Cadet (#2B2D42). oklch(29.3% 0.048 303), rgb(49, 38, 64).

Aa

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

About this color

#312640 is a dark, muted purple. In OKLCH its lightness is 29%, its chroma 0.048 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.023 away. White text reads best on it, at 14.17:1.

Hue familyPurples
Lightnessdark (29%)
Chromamuted (0.048)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.48:1
White text14.17:1

Values

HEX#312640
RGBrgb(49, 38, 64)
HSLhsl(265, 25%, 20%)
OKLCHoklch(29.3% 0.048 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 #312640 14.17:1 AAA Lc -103.8 Preferred for body text
Black text on #312640 1.48:1 Fails Lc 0.0 Not readable
#312640 text on white 14.17:1 AAA Lc 100.8 Preferred for body text
#312640 text on black 1.48: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

    #F6F4FA

    oklch(97% 0.008 301.4)

  2. Step 100

    100

    #ECE7F3

    oklch(93.5% 0.017 304.8)

  3. Step 200

    200

    #DDD4EB

    oklch(88.4% 0.033 303.4)

  4. Step 300

    300

    #C8B8E0

    oklch(80.9% 0.058 303.3)

  5. Step 400

    400

    #AC93D0

    oklch(70.8% 0.091 302.9)

  6. Step 500

    500

    #9877C3

    oklch(63.1% 0.116 303.2)

  7. Step 600

    600

    #835FB0

    oklch(55.7% 0.127 303)

  8. Step 700

    700

    #6F4E97

    oklch(49.2% 0.117 303.2)

  9. Step 800

    800

    #5A407B

    oklch(42.7% 0.098 302.8)

  10. Step 900

    900

    #4A3763

    oklch(37.8% 0.076 302.8)

  11. Step 950

    950 (this color)

    #312640

    oklch(29.3% 0.048 303)

Export this scale for Tailwind in the Tailwind colors tool

#312640 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)#202B410.031
Deuteranopia (no green cones)#222B3F0.030
Tritanopia (no blue cones)#2F2A300.036
Achromatopsia (no color)#2B2B2B0.048

Harmonies

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

Complementary

The opposite hue (180°).

  • #312640

    #312640

    oklch(29.3% 0.048 303)

  • #283013

    #283013

    oklch(29.4% 0.049 122.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312640

    #312640

    oklch(29.3% 0.048 303)

  • #242A44

    #242A44

    oklch(29.2% 0.048 273.2)

  • #3A2336

    #3A2336

    oklch(29.3% 0.047 333.1)

Open the analogous palette in the generator

Split complementary

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

  • #312640

    #312640

    oklch(29.3% 0.048 303)

  • #342B0C

    #342B0C

    oklch(29.2% 0.048 92.9)

  • #173320

    #173320

    oklch(29.3% 0.049 152.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312640

    #312640

    oklch(29.3% 0.048 303)

  • #3D2611

    #3D2611

    oklch(29.2% 0.048 61.5)

  • #06342E

    #06342E

    oklch(29.4% 0.049 182)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312640

    #312640

    oklch(29.3% 0.048 303)

  • #41231C

    #41231C

    oklch(29.4% 0.048 34)

  • #283013

    #283013

    oklch(29.4% 0.049 122.2)

  • #05323A

    #05323A

    oklch(29.3% 0.048 212.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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