#313258

Closest named color: Prussian Blue (#1D3557). oklch(33.5% 0.066 281.1), rgb(49, 50, 88).

Aa

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

About this color

#313258 is a dark, muted purple. In OKLCH its lightness is 34%, its chroma 0.066 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.029 away. White text reads best on it, at 12.15:1.

Hue familyPurples
Lightnessdark (34%)
Chromamuted (0.066)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.72:1
White text12.15:1

Values

HEX#313258
RGBrgb(49, 50, 88)
HSLhsl(238, 28%, 27%)
OKLCHoklch(33.5% 0.066 281.1)

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 #313258 12.15:1 AAA Lc -101.2 Preferred for body text
Black text on #313258 1.72:1 Fails Lc 0.0 Not readable
#313258 text on white 12.15:1 AAA Lc 97.7 Preferred for body text
#313258 text on black 1.72: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

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E8E9F4

    oklch(93.6% 0.015 281.9)

  3. Step 200

    200

    #D5D7EC

    oklch(88.4% 0.029 281.5)

  4. Step 300

    300

    #BABEE1

    oklch(81% 0.049 280.1)

  5. Step 400

    400

    #979BD2

    oklch(70.7% 0.08 280.9)

  6. Step 500

    500

    #7F82C6

    oklch(63.2% 0.102 281.1)

  7. Step 600

    600

    #686AB2

    oklch(55.5% 0.111 280.9)

  8. Step 700

    700

    #575899

    oklch(49% 0.103 281.2)

  9. Step 800

    800

    #47487C

    oklch(42.6% 0.085 281.3)

  10. Step 900

    900 (this color)

    #313258

    oklch(33.5% 0.066 281.1)

  11. Step 950

    950

    #23243B

    oklch(27.1% 0.043 281.2)

Export this scale for Tailwind in the Tailwind colors tool

#313258 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)#2537590.022
Deuteranopia (no green cones)#2334570.021
Tritanopia (no blue cones)#253A400.059
Achromatopsia (no color)#3636360.066

Harmonies

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

Complementary

The opposite hue (180°).

  • #313258

    #313258

    oklch(33.5% 0.066 281.1)

  • #3E3705

    #3E3705

    oklch(33.4% 0.066 100.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313258

    #313258

    oklch(33.5% 0.066 281.1)

  • #1A3858

    #1A3858

    oklch(33.5% 0.067 251.8)

  • #422C50

    #422C50

    oklch(33.6% 0.067 311.3)

Open the analogous palette in the generator

Split complementary

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

  • #313258

    #313258

    oklch(33.5% 0.066 281.1)

  • #4C3007

    #4C3007

    oklch(33.5% 0.067 71)

  • #2A3E17

    #2A3E17

    oklch(33.7% 0.067 131.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313258

    #313258

    oklch(33.5% 0.066 281.1)

  • #532A1A

    #532A1A

    oklch(33.6% 0.066 41.6)

  • #0D412B

    #0D412B

    oklch(33.5% 0.067 160.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313258

    #313258

    oklch(33.5% 0.066 281.1)

  • #53272E

    #53272E

    oklch(33.5% 0.066 11.2)

  • #3E3705

    #3E3705

    oklch(33.4% 0.066 100.8)

  • #00403E

    #00403E

    oklch(33.6% 0.058 191.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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