#313254

Closest named color: Prussian Blue (#1D3557). oklch(33.3% 0.06 281.4), rgb(49, 50, 84).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.060)
Temperaturecool
Nearest namePrussian Blue (#1D3557)
Black text1.71:1
White text12.24:1

Values

HEX#313254
RGBrgb(49, 50, 84)
HSLhsl(238, 26%, 26%)
OKLCHoklch(33.3% 0.06 281.4)

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 #313254 12.24:1 AAA Lc -101.4 Preferred for body text
Black text on #313254 1.71:1 Fails Lc 0.0 Not readable
#313254 text on white 12.24:1 AAA Lc 97.9 Preferred for body text
#313254 text on black 1.71: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

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E8E9F3

    oklch(93.6% 0.013 281.6)

  3. Step 200

    200

    #D6D8EA

    oklch(88.6% 0.025 280.8)

  4. Step 300

    300

    #BBBEDE

    oklch(81% 0.045 281.1)

  5. Step 400

    400

    #989CCD

    oklch(70.7% 0.072 280.8)

  6. Step 500

    500

    #8083C0

    oklch(63.2% 0.091 281.3)

  7. Step 600

    600

    #6A6CAC

    oklch(55.7% 0.099 281.3)

  8. Step 700

    700

    #585A94

    oklch(49.2% 0.092 280.9)

  9. Step 800

    800

    #484978

    oklch(42.6% 0.077 281.7)

  10. Step 900

    900 (this color)

    #313254

    oklch(33.3% 0.06 281.4)

  11. Step 950

    950

    #232439

    oklch(27% 0.039 281.4)

Export this scale for Tailwind in the Tailwind colors tool

#313254 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)#2736550.018
Deuteranopia (no green cones)#2534530.019
Tritanopia (no blue cones)#27393F0.052
Achromatopsia (no color)#3535350.060

Harmonies

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

Complementary

The opposite hue (180°).

  • #313254

    #313254

    oklch(33.3% 0.06 281.4)

  • #3D370D

    #3D370D

    oklch(33.4% 0.06 101.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313254

    #313254

    oklch(33.3% 0.06 281.4)

  • #1D3854

    #1D3854

    oklch(33.4% 0.06 250.8)

  • #402D4D

    #402D4D

    oklch(33.4% 0.06 310.7)

Open the analogous palette in the generator

Split complementary

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

  • #313254

    #313254

    oklch(33.3% 0.06 281.4)

  • #49300F

    #49300F

    oklch(33.2% 0.059 70.4)

  • #2B3C1A

    #2B3C1A

    oklch(33.2% 0.059 130.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313254

    #313254

    oklch(33.3% 0.06 281.4)

  • #502B1D

    #502B1D

    oklch(33.4% 0.06 41.2)

  • #143F2C

    #143F2C

    oklch(33.2% 0.059 161.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313254

    #313254

    oklch(33.3% 0.06 281.4)

  • #50282E

    #50282E

    oklch(33.2% 0.06 11.3)

  • #3D370D

    #3D370D

    oklch(33.4% 0.06 101.1)

  • #003F3D

    #003F3D

    oklch(33.2% 0.057 191.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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