#5170A8

Closest named color: Flat Blue (#3C73A8). oklch(54.6% 0.095 261.6), rgb(81, 112, 168).

Aa

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

About this color

#5170A8 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 55%, its chroma 0.095 and its hue 262°. Its hue sits on the cool side of the wheel. The nearest named color is Flat Blue (#3C73A8), ΔE 0.022 away. White text reads best on it, at 4.96:1.

Hue familyBlues
Lightnessmedium-dark (55%)
Chromamoderately saturated (0.095)
Temperaturecool
Nearest nameFlat Blue (#3C73A8)
Black text4.23:1
White text4.96:1

Values

HEX#5170A8
RGBrgb(81, 112, 168)
HSLhsl(219, 35%, 49%)
OKLCHoklch(54.6% 0.095 261.6)

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 #5170A8 4.96:1 AA Lc -79.6 Fine for body text
Black text on #5170A8 4.23:1 AA large text Lc 29.9 Dividers and decoration only
#5170A8 text on white 4.96:1 AA Lc 74.2 Content text, not long reading
#5170A8 text on black 4.23:1 AA large text Lc -27.5 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

    #F3F5F9

    oklch(97% 0.006 264.5)

  2. Step 100

    100

    #E5EAF2

    oklch(93.6% 0.012 259.8)

  3. Step 200

    200

    #D1DAE9

    oklch(88.6% 0.023 260.7)

  4. Step 300

    300

    #B2C1DD

    oklch(80.9% 0.043 263)

  5. Step 400

    400

    #89A1CC

    oklch(70.6% 0.069 261.9)

  6. Step 500

    500

    #6C8ABF

    oklch(63.2% 0.087 261.4)

  7. Step 600

    600 (this color)

    #5170A8

    oklch(54.6% 0.095 261.6)

  8. Step 700

    700

    #446093

    oklch(49.1% 0.089 261.7)

  9. Step 800

    800

    #384F77

    oklch(42.8% 0.073 261)

  10. Step 900

    900

    #304260

    oklch(37.8% 0.057 260.3)

  11. Step 950

    950

    #1D2638

    oklch(26.9% 0.036 263.7)

Export this scale for Tailwind in the Tailwind colors tool

#5170A8 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)#5A74AA0.017
Deuteranopia (no green cones)#506CA70.011
Tritanopia (no blue cones)#287C840.085
Achromatopsia (no color)#7070700.095

Harmonies

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

Complementary

The opposite hue (180°).

  • #5170A8

    #5170A8

    oklch(54.6% 0.095 261.6)

  • #8C6A25

    #8C6A25

    oklch(54.5% 0.095 81.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5170A8

    #5170A8

    oklch(54.6% 0.095 261.6)

  • #287A9E

    #287A9E

    oklch(54.7% 0.095 231.4)

  • #7166A3

    #7166A3

    oklch(54.6% 0.094 291.2)

Open the analogous palette in the generator

Split complementary

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

  • #5170A8

    #5170A8

    oklch(54.6% 0.095 261.6)

  • #9C5F39

    #9C5F39

    oklch(54.6% 0.096 51.5)

  • #72762D

    #72762D

    oklch(54.7% 0.096 112.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5170A8

    #5170A8

    oklch(54.6% 0.095 261.6)

  • #A15957

    #A15957

    oklch(54.7% 0.095 22.3)

  • #4F7E49

    #4F7E49

    oklch(54.5% 0.095 141.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5170A8

    #5170A8

    oklch(54.6% 0.095 261.6)

  • #9A5877

    #9A5877

    oklch(54.6% 0.095 351.1)

  • #8C6A25

    #8C6A25

    oklch(54.5% 0.095 81.7)

  • #22826A

    #22826A

    oklch(54.6% 0.095 172.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5170A8 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.