#3171B6

Closest named color: Mid Blue (#276AB3). oklch(54.1% 0.126 252.7), rgb(49, 113, 182).

Aa

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

About this color

#3171B6 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 54%, its chroma 0.126 and its hue 253°. Its hue sits on the cool side of the wheel. The nearest named color is Mid Blue (#276AB3), ΔE 0.022 away. White text reads best on it, at 5.03:1.

Hue familyBlues
Lightnessmedium-dark (54%)
Chromamoderately saturated (0.126)
Temperaturecool
Nearest nameMid Blue (#276AB3)
Black text4.16:1
White text5.03:1

Values

HEX#3171B6
RGBrgb(49, 113, 182)
HSLhsl(211, 58%, 45%)
OKLCHoklch(54.1% 0.126 252.7)

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 #3171B6 5.03:1 AA Lc -79.9 Fine for body text
Black text on #3171B6 4.16:1 AA large text Lc 29.6 Dividers and decoration only
#3171B6 text on white 5.03:1 AA Lc 74.5 Content text, not long reading
#3171B6 text on black 4.16:1 AA large text Lc -27.2 Dividers and decoration only

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 600.

  1. Step 50

    50

    #F2F6FB

    oklch(97.2% 0.008 253.9)

  2. Step 100

    100

    #E2EBF5

    oklch(93.6% 0.017 250.8)

  3. Step 200

    200

    #CBDBEE

    oklch(88.5% 0.031 252.7)

  4. Step 300

    300

    #A7C4E5

    oklch(81% 0.056 251.8)

  5. Step 400

    400

    #77A4D8

    oklch(70.7% 0.091 252.6)

  6. Step 500

    500

    #538DCE

    oklch(63.2% 0.116 252.5)

  7. Step 600

    600 (this color)

    #3171B6

    oklch(54.1% 0.126 252.7)

  8. Step 700

    700

    #2862A1

    oklch(49% 0.118 253)

  9. Step 800

    800

    #225082

    oklch(42.5% 0.097 252.7)

  10. Step 900

    900

    #214369

    oklch(37.7% 0.077 252.8)

  11. Step 950

    950

    #14273D

    oklch(26.8% 0.048 253.2)

Export this scale for Tailwind in the Tailwind colors tool

#3171B6 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)#5176B90.036
Deuteranopia (no green cones)#3D69B50.023
Tritanopia (no blue cones)#00818B0.095
Achromatopsia (no color)#6F6F6F0.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #3171B6

    #3171B6

    oklch(54.1% 0.126 252.7)

  • #976200

    #976200

    oklch(54% 0.115 72.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #3171B6

    #3171B6

    oklch(54.1% 0.126 252.7)

  • #007B99

    #007B99

    oklch(54.1% 0.1 222.7)

  • #6663B6

    #6663B6

    oklch(54.2% 0.127 282.9)

Open the analogous palette in the generator

Split complementary

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

  • #3171B6

    #3171B6

    oklch(54.1% 0.126 252.7)

  • #AA522C

    #AA522C

    oklch(54.1% 0.127 42.6)

  • #7C7100

    #7C7100

    oklch(54.2% 0.114 102.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #3171B6

    #3171B6

    oklch(54.1% 0.126 252.7)

  • #AB4B5A

    #AB4B5A

    oklch(54% 0.126 12.7)

  • #517E27

    #517E27

    oklch(54.2% 0.127 132.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #3171B6

    #3171B6

    oklch(54.1% 0.126 252.7)

  • #A04E83

    #A04E83

    oklch(54.3% 0.127 342.7)

  • #976200

    #976200

    oklch(54% 0.115 72.5)

  • #00845A

    #00845A

    oklch(54.2% 0.118 162.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #3171B6 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.