#5171ED

Closest named color: Royal Blue (#4169E1). oklch(59.2% 0.19 269), rgb(81, 113, 237).

Aa

Black text reads best on this color (4.93:1).

About this color

#5171ED is a medium-dark, vivid blue. In OKLCH its lightness is 59%, its chroma 0.190 and its hue 269°. Its hue sits on the cool side of the wheel. The nearest named color is Royal Blue (#4169E1), ΔE 0.033 away. Black text reads best on it, at 4.93:1.

Hue familyBlues
Lightnessmedium-dark (59%)
Chromavivid (0.190)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.93:1
White text4.25:1

Values

HEX#5171ED
RGBrgb(81, 113, 237)
HSLhsl(228, 81%, 62%)
OKLCHoklch(59.2% 0.19 269)

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 #5171ED 4.25:1 AA large text Lc -74.5 Content text, not long reading
Black text on #5171ED 4.93:1 AA Lc 35.1 Non-text elements, placeholder text
#5171ED text on white 4.25:1 AA large text Lc 69.0 Content text, not long reading
#5171ED text on black 4.93:1 AA Lc -32.6 Non-text elements, placeholder text

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

    #F2F5FD

    oklch(97% 0.011 269.6)

  2. Step 100

    100

    #E3EAFB

    oklch(93.7% 0.024 267.9)

  3. Step 200

    200

    #CCD9FA

    oklch(88.6% 0.048 268.4)

  4. Step 300

    300

    #AABFF9

    oklch(80.9% 0.086 269)

  5. Step 400

    400

    #7E9BF6

    oklch(70.7% 0.137 269.3)

  6. Step 500

    500

    #5F80F2

    oklch(63.2% 0.174 268.9)

  7. Step 600

    600 (this color)

    #5171ED

    oklch(59.2% 0.19 269)

  8. Step 700

    700

    #3A53C3

    oklch(49% 0.177 269.3)

  9. Step 800

    800

    #2F459E

    oklch(42.7% 0.147 268.9)

  10. Step 900

    900

    #293B7D

    oklch(37.6% 0.114 268.9)

  11. Step 950

    950

    #182349

    oklch(26.9% 0.072 269)

Export this scale for Tailwind in the Tailwind colors tool

#5171ED 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)#1E82F10.050
Deuteranopia (no green cones)#0074EA0.047
Tritanopia (no blue cones)#008EA40.156
Achromatopsia (no color)#7B7B7B0.190

Harmonies

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

Complementary

The opposite hue (180°).

  • #5171ED

    #5171ED

    oklch(59.2% 0.19 269)

  • #9B7900

    #9B7900

    oklch(59.2% 0.121 88.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5171ED

    #5171ED

    oklch(59.2% 0.19 269)

  • #0087C4

    #0087C4

    oklch(59.3% 0.133 238.9)

  • #8F5CDD

    #8F5CDD

    oklch(59.2% 0.19 298.7)

Open the analogous palette in the generator

Split complementary

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

  • #5171ED

    #5171ED

    oklch(59.2% 0.19 269)

  • #B96500

    #B96500

    oklch(59.2% 0.14 59)

  • #758800

    #758800

    oklch(59.1% 0.139 119.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5171ED

    #5171ED

    oklch(59.2% 0.19 269)

  • #D74033

    #D74033

    oklch(59.1% 0.19 29)

  • #009740

    #009740

    oklch(59.1% 0.167 149)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5171ED

    #5171ED

    oklch(59.2% 0.19 269)

  • #D03D7B

    #D03D7B

    oklch(59.1% 0.19 359)

  • #9B7900

    #9B7900

    oklch(59.2% 0.121 88.9)

  • #00927F

    #00927F

    oklch(59.1% 0.108 179.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5171ED 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.