#5170C8

Closest named color: Windows Blue (#3778BF). oklch(56.5% 0.141 267.2), rgb(81, 112, 200).

Aa

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

About this color

#5170C8 is a medium-dark, vivid blue. In OKLCH its lightness is 56%, its chroma 0.141 and its hue 267°. Its hue sits on the cool side of the wheel. The nearest named color is Windows Blue (#3778BF), ΔE 0.036 away. White text reads best on it, at 4.66:1.

Hue familyBlues
Lightnessmedium-dark (56%)
Chromavivid (0.141)
Temperaturecool
Nearest nameWindows Blue (#3778BF)
Black text4.50:1
White text4.66:1

Values

HEX#5170C8
RGBrgb(81, 112, 200)
HSLhsl(224, 52%, 55%)
OKLCHoklch(56.5% 0.141 267.2)

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 #5170C8 4.66:1 AA Lc -77.6 Fine for body text
Black text on #5170C8 4.50:1 AA Lc 31.9 Non-text elements, placeholder text
#5170C8 text on white 4.66:1 AA Lc 72.2 Content text, not long reading
#5170C8 text on black 4.50:1 AA Lc -29.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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CFD9F1

    oklch(88.5% 0.035 267.6)

  4. Step 300

    300

    #AEC0EB

    oklch(80.9% 0.064 267.2)

  5. Step 400

    400

    #849FE0

    oklch(70.8% 0.1 266.6)

  6. Step 500

    500

    #6685D8

    oklch(63.1% 0.13 267.2)

  7. Step 600

    600 (this color)

    #5170C8

    oklch(56.5% 0.141 267.2)

  8. Step 700

    700

    #405BAA

    oklch(49.1% 0.13 267.3)

  9. Step 800

    800

    #344B8A

    oklch(42.8% 0.108 266.8)

  10. Step 900

    900

    #2E3F6E

    oklch(37.8% 0.084 267.4)

  11. Step 950

    950

    #1B2541

    oklch(27% 0.054 267.8)

Export this scale for Tailwind in the Tailwind colors tool

#5170C8 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)#487ACB0.027
Deuteranopia (no green cones)#376FC60.027
Tritanopia (no blue cones)#0084920.124
Achromatopsia (no color)#7474740.141

Harmonies

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

Complementary

The opposite hue (180°).

  • #5170C8

    #5170C8

    oklch(56.5% 0.141 267.2)

  • #937000

    #937000

    oklch(56.4% 0.115 86.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5170C8

    #5170C8

    oklch(56.5% 0.141 267.2)

  • #007FB5

    #007FB5

    oklch(56.5% 0.124 237.1)

  • #8061BD

    #8061BD

    oklch(56.5% 0.14 297.3)

Open the analogous palette in the generator

Split complementary

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

  • #5170C8

    #5170C8

    oklch(56.5% 0.141 267.2)

  • #B05D00

    #B05D00

    oklch(56.5% 0.137 57.1)

  • #717F00

    #717F00

    oklch(56.5% 0.131 117.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5170C8

    #5170C8

    oklch(56.5% 0.141 267.2)

  • #BA4F46

    #BA4F46

    oklch(56.4% 0.14 27.3)

  • #2D8B41

    #2D8B41

    oklch(56.4% 0.141 147.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5170C8

    #5170C8

    oklch(56.5% 0.141 267.2)

  • #B44D77

    #B44D77

    oklch(56.5% 0.141 357)

  • #937000

    #937000

    oklch(56.4% 0.115 86.8)

  • #008A75

    #008A75

    oklch(56.6% 0.105 176.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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