#312F59

Closest named color: Prussian Blue (#1D3557). oklch(32.9% 0.073 283.8), rgb(49, 47, 89).

Aa

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

About this color

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

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

Values

HEX#312F59
RGBrgb(49, 47, 89)
HSLhsl(243, 31%, 27%)
OKLCHoklch(32.9% 0.073 283.8)

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 #312F59 12.48:1 AAA Lc -101.7 Preferred for body text
Black text on #312F59 1.68:1 Fails Lc 0.0 Not readable
#312F59 text on white 12.48:1 AAA Lc 98.3 Preferred for body text
#312F59 text on black 1.68: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

    #F5F5FA

    oklch(97.2% 0.007 286.3)

  2. Step 100

    100

    #E8E9F4

    oklch(93.6% 0.015 281.9)

  3. Step 200

    200

    #D6D7ED

    oklch(88.5% 0.03 283.7)

  4. Step 300

    300

    #BBBDE4

    oklch(81% 0.055 282.8)

  5. Step 400

    400

    #999AD6

    oklch(70.8% 0.087 283.2)

  6. Step 500

    500

    #817FCB

    oklch(63% 0.113 283.9)

  7. Step 600

    600

    #6B68B7

    oklch(55.6% 0.12 283.5)

  8. Step 700

    700

    #5A569E

    oklch(49.1% 0.113 284)

  9. Step 800

    800

    #494780

    oklch(42.8% 0.093 283.3)

  10. Step 900

    900 (this color)

    #312F59

    oklch(32.9% 0.073 283.8)

  11. Step 950

    950

    #24233C

    oklch(27% 0.046 284.7)

Export this scale for Tailwind in the Tailwind colors tool

#312F59 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)#20355B0.028
Deuteranopia (no green cones)#1E32580.029
Tritanopia (no blue cones)#25373F0.062
Achromatopsia (no color)#3434340.073

Harmonies

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

Complementary

The opposite hue (180°).

  • #312F59

    #312F59

    oklch(32.9% 0.073 283.8)

  • #3B3600

    #3B3600

    oklch(32.8% 0.069 103.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312F59

    #312F59

    oklch(32.9% 0.073 283.8)

  • #18365A

    #18365A

    oklch(33% 0.073 254.4)

  • #43294F

    #43294F

    oklch(33% 0.072 314.4)

Open the analogous palette in the generator

Split complementary

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

  • #312F59

    #312F59

    oklch(32.9% 0.073 283.8)

  • #4A2F00

    #4A2F00

    oklch(33% 0.07 74.6)

  • #253D13

    #253D13

    oklch(32.9% 0.073 133.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312F59

    #312F59

    oklch(32.9% 0.073 283.8)

  • #532713

    #532713

    oklch(32.9% 0.073 43.8)

  • #00402B

    #00402B

    oklch(32.9% 0.07 163.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312F59

    #312F59

    oklch(32.9% 0.073 283.8)

  • #54232A

    #54232A

    oklch(32.8% 0.073 13.1)

  • #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 #312F59, closest first.

Similar named colors

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

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