#312C60

Closest named color: Prussian Blue (#1D3557). oklch(32.8% 0.089 284.7), rgb(49, 44, 96).

Aa

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

About this color

#312C60 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.089 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.65:1.

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

Values

HEX#312C60
RGBrgb(49, 44, 96)
HSLhsl(246, 37%, 27%)
OKLCHoklch(32.8% 0.089 284.7)

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 #312C60 12.65:1 AAA Lc -101.9 Preferred for body text
Black text on #312C60 1.65:1 Fails Lc 0.0 Not readable
#312C60 text on white 12.65:1 AAA Lc 98.5 Preferred for body text
#312C60 text on black 1.65: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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E8E8F7

    oklch(93.5% 0.02 286)

  3. Step 200

    200

    #D6D6F1

    oklch(88.4% 0.037 285.6)

  4. Step 300

    300

    #BBBBEB

    oklch(80.8% 0.067 284.8)

  5. Step 400

    400

    #9997E1

    oklch(70.7% 0.107 284.5)

  6. Step 500

    500

    #827CD8

    oklch(63.2% 0.136 284.8)

  7. Step 600

    600

    #6C63C6

    oklch(55.7% 0.149 284.6)

  8. Step 700

    700

    #5A51AB

    oklch(49% 0.139 284.6)

  9. Step 800

    800

    #4A438A

    oklch(42.7% 0.114 285)

  10. Step 900

    900 (this color)

    #312C60

    oklch(32.8% 0.089 284.7)

  11. Step 950

    950

    #242241

    oklch(27.1% 0.057 284.9)

Export this scale for Tailwind in the Tailwind colors tool

#312C60 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)#1434620.041
Deuteranopia (no green cones)#13315F0.041
Tritanopia (no blue cones)#2237410.076
Achromatopsia (no color)#3333330.089

Harmonies

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

Complementary

The opposite hue (180°).

  • #312C60

    #312C60

    oklch(32.8% 0.089 284.7)

  • #3B3600

    #3B3600

    oklch(32.8% 0.069 103.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312C60

    #312C60

    oklch(32.8% 0.089 284.7)

  • #0E3561

    #0E3561

    oklch(32.8% 0.089 254.3)

  • #452454

    #452454

    oklch(32.7% 0.09 314.2)

Open the analogous palette in the generator

Split complementary

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

  • #312C60

    #312C60

    oklch(32.8% 0.089 284.7)

  • #492F00

    #492F00

    oklch(32.8% 0.069 75.7)

  • #1F3E06

    #1F3E06

    oklch(32.7% 0.089 134.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312C60

    #312C60

    oklch(32.8% 0.089 284.7)

  • #582204

    #582204

    oklch(32.7% 0.089 45)

  • #00402C

    #00402C

    oklch(32.9% 0.069 164.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312C60

    #312C60

    oklch(32.8% 0.089 284.7)

  • #5A1D26

    #5A1D26

    oklch(32.8% 0.09 14.7)

  • #3B3600

    #3B3600

    oklch(32.8% 0.069 103.8)

  • #003E3D

    #003E3D

    oklch(32.9% 0.056 193)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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