#313571

Closest named color: Marine Blue (#01386A). oklch(36% 0.102 277.1), rgb(49, 53, 113).

Aa

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

About this color

#313571 is a dark, moderately saturated blue. In OKLCH its lightness is 36%, its chroma 0.102 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.048 away. White text reads best on it, at 11.18:1.

Hue familyBlues
Lightnessdark (36%)
Chromamoderately saturated (0.102)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.87:1
White text11.18:1

Values

HEX#313571
RGBrgb(49, 53, 113)
HSLhsl(236, 40%, 32%)
OKLCHoklch(36% 0.102 277.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 #313571 11.18:1 AAA Lc -99.4 Preferred for body text
Black text on #313571 1.87:1 Fails Lc 8.3 Not readable
#313571 text on white 11.18:1 AAA Lc 95.6 Preferred for body text
#313571 text on black 1.87: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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E6E9F9

    oklch(93.6% 0.022 277.5)

  3. Step 200

    200

    #D2D7F6

    oklch(88.5% 0.043 278.2)

  4. Step 300

    300

    #B4BDF2

    oklch(81% 0.076 277.1)

  5. Step 400

    400

    #8E99EC

    oklch(70.8% 0.122 277.1)

  6. Step 500

    500

    #747DE6

    oklch(63.2% 0.156 277.3)

  7. Step 600

    600

    #5E64D4

    oklch(55.7% 0.169 277.1)

  8. Step 700

    700

    #4E52B8

    oklch(49.2% 0.158 277.2)

  9. Step 800

    800

    #3F4494

    oklch(42.7% 0.129 276.7)

  10. Step 900

    900 (this color)

    #313571

    oklch(36% 0.102 277.1)

  11. Step 950

    950

    #1F2245

    oklch(26.9% 0.064 277.4)

Export this scale for Tailwind in the Tailwind colors tool

#313571 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)#173E730.036
Deuteranopia (no green cones)#0E39700.038
Tritanopia (no blue cones)#13424D0.089
Achromatopsia (no color)#3B3B3B0.102

Harmonies

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

Complementary

The opposite hue (180°).

  • #313571

    #313571

    oklch(36% 0.102 277.1)

  • #483D00

    #483D00

    oklch(36.1% 0.074 97.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313571

    #313571

    oklch(36% 0.102 277.1)

  • #003F6B

    #003F6B

    oklch(35.8% 0.095 247.3)

  • #4B2B66

    #4B2B66

    oklch(35.9% 0.103 307)

Open the analogous palette in the generator

Split complementary

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

  • #313571

    #313571

    oklch(36% 0.102 277.1)

  • #583300

    #583300

    oklch(35.9% 0.079 66.8)

  • #304500

    #304500

    oklch(35.9% 0.092 126.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313571

    #313571

    oklch(36% 0.102 277.1)

  • #682410

    #682410

    oklch(36% 0.103 36.7)

  • #004A2A

    #004A2A

    oklch(36% 0.086 156.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313571

    #313571

    oklch(36% 0.102 277.1)

  • #672034

    #672034

    oklch(36% 0.103 6.7)

  • #483D00

    #483D00

    oklch(36.1% 0.074 97.7)

  • #004743

    #004743

    oklch(35.9% 0.062 188.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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