#312C61

Closest named color: Prussian Blue (#1D3557). oklch(32.8% 0.091 284.5), rgb(49, 44, 97).

Aa

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

About this color

#312C61 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.091 and its hue 285°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.043 away. White text reads best on it, at 12.62:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.091)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.66:1
White text12.62:1

Values

HEX#312C61
RGBrgb(49, 44, 97)
HSLhsl(246, 38%, 28%)
OKLCHoklch(32.8% 0.091 284.5)

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 #312C61 12.62:1 AAA Lc -101.8 Preferred for body text
Black text on #312C61 1.66:1 Fails Lc 0.0 Not readable
#312C61 text on white 12.62:1 AAA Lc 98.5 Preferred for body text
#312C61 text on black 1.66: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 900.

  1. Step 50

    50

    #F4F5FC

    oklch(97.1% 0.009 279.7)

  2. Step 100

    100

    #E8E8F7

    oklch(93.5% 0.02 286)

  3. Step 200

    200

    #D6D6F2

    oklch(88.5% 0.038 285.6)

  4. Step 300

    300

    #BBBBEC

    oklch(80.9% 0.069 284.8)

  5. Step 400

    400

    #9997E2

    oklch(70.7% 0.109 284.5)

  6. Step 500

    500

    #817BDA

    oklch(63.1% 0.14 284.5)

  7. Step 600

    600

    #6C62C7

    oklch(55.5% 0.152 284.8)

  8. Step 700

    700

    #5A51AC

    oklch(49.1% 0.14 284.4)

  9. Step 800

    800

    #49438B

    oklch(42.7% 0.116 284.1)

  10. Step 900

    900 (this color)

    #312C61

    oklch(32.8% 0.091 284.5)

  11. Step 950

    950

    #242241

    oklch(27.1% 0.057 284.9)

Export this scale for Tailwind in the Tailwind colors tool

#312C61 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)#1335630.043
Deuteranopia (no green cones)#1131600.043
Tritanopia (no blue cones)#2137420.076
Achromatopsia (no color)#3333330.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #312C61

    #312C61

    oklch(32.8% 0.091 284.5)

  • #3B3600

    #3B3600

    oklch(32.8% 0.069 103.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312C61

    #312C61

    oklch(32.8% 0.091 284.5)

  • #0D3562

    #0D3562

    oklch(32.9% 0.091 254.4)

  • #462455

    #462455

    oklch(32.9% 0.091 314.5)

Open the analogous palette in the generator

Split complementary

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

  • #312C61

    #312C61

    oklch(32.8% 0.091 284.5)

  • #4A2F00

    #4A2F00

    oklch(33% 0.07 74.6)

  • #1F3E04

    #1F3E04

    oklch(32.7% 0.09 134.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312C61

    #312C61

    oklch(32.8% 0.091 284.5)

  • #592203

    #592203

    oklch(32.9% 0.09 45.1)

  • #00402C

    #00402C

    oklch(32.9% 0.069 164.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312C61

    #312C61

    oklch(32.8% 0.091 284.5)

  • #5A1D26

    #5A1D26

    oklch(32.8% 0.09 14.7)

  • #3B3600

    #3B3600

    oklch(32.8% 0.069 103.8)

  • #003E3E

    #003E3E

    oklch(32.9% 0.056 194.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #312C61 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.