#312A60

Closest named color: Prussian Blue (#1D3557). oklch(32.4% 0.092 285.9), rgb(49, 42, 96).

Aa

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

About this color

#312A60 is a dark, moderately saturated purple. In OKLCH its lightness is 32%, its chroma 0.092 and its hue 286°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.046 away. White text reads best on it, at 12.87:1.

Hue familyPurples
Lightnessdark (32%)
Chromamoderately saturated (0.092)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.63:1
White text12.87:1

Values

HEX#312A60
RGBrgb(49, 42, 96)
HSLhsl(248, 39%, 27%)
OKLCHoklch(32.4% 0.092 285.9)

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 #312A60 12.87:1 AAA Lc -102.2 Preferred for body text
Black text on #312A60 1.63:1 Fails Lc 0.0 Not readable
#312A60 text on white 12.87:1 AAA Lc 98.9 Preferred for body text
#312A60 text on black 1.63: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

    #F5F5FC

    oklch(97.2% 0.009 286.2)

  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

    #BCBBEC

    oklch(80.9% 0.069 285.7)

  5. Step 400

    400

    #9B96E3

    oklch(70.8% 0.111 286.2)

  6. Step 500

    500

    #837ADA

    oklch(63% 0.141 285.9)

  7. Step 600

    600

    #6E61C8

    oklch(55.6% 0.154 286)

  8. Step 700

    700

    #5C50AD

    oklch(49.1% 0.143 285.7)

  9. Step 800

    800

    #4B428C

    oklch(42.7% 0.118 285.8)

  10. Step 900

    900 (this color)

    #312A60

    oklch(32.4% 0.092 285.9)

  11. Step 950

    950

    #242141

    oklch(26.9% 0.058 286)

Export this scale for Tailwind in the Tailwind colors tool

#312A60 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)#1033620.046
Deuteranopia (no green cones)#0E305F0.046
Tritanopia (no blue cones)#2236400.079
Achromatopsia (no color)#3232320.093

Harmonies

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

Complementary

The opposite hue (180°).

  • #312A60

    #312A60

    oklch(32.4% 0.092 285.9)

  • #393500

    #393500

    oklch(32.3% 0.068 105)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312A60

    #312A60

    oklch(32.4% 0.092 285.9)

  • #0D3362

    #0D3362

    oklch(32.4% 0.093 256)

  • #462253

    #462253

    oklch(32.4% 0.093 316.3)

Open the analogous palette in the generator

Split complementary

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

  • #312A60

    #312A60

    oklch(32.4% 0.092 285.9)

  • #472E00

    #472E00

    oklch(32.3% 0.068 76.3)

  • #1B3E03

    #1B3E03

    oklch(32.5% 0.093 136.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312A60

    #312A60

    oklch(32.4% 0.092 285.9)

  • #582100

    #582100

    oklch(32.5% 0.091 46.1)

  • #003E2C

    #003E2C

    oklch(32.3% 0.066 166.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312A60

    #312A60

    oklch(32.4% 0.092 285.9)

  • #5A1B23

    #5A1B23

    oklch(32.5% 0.092 16.5)

  • #393500

    #393500

    oklch(32.3% 0.068 105)

  • #003C3D

    #003C3D

    oklch(32.3% 0.055 196.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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