#5174DC

Closest named color: Royal Blue (#4169E1). oklch(58.6% 0.163 267.3), rgb(81, 116, 220).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (59%)
Chromavivid (0.163)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.88:1
White text4.30:1

Values

HEX#5174DC
RGBrgb(81, 116, 220)
HSLhsl(225, 67%, 59%)
OKLCHoklch(58.6% 0.163 267.3)

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 #5174DC 4.30:1 AA large text Lc -75.0 Content text, not long reading
Black text on #5174DC 4.88:1 AA Lc 34.6 Non-text elements, placeholder text
#5174DC text on white 4.30:1 AA large text Lc 69.5 Content text, not long reading
#5174DC text on black 4.88:1 AA Lc -32.2 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

    #F2F5FC

    oklch(97% 0.01 267.4)

  2. Step 100

    100

    #E3EAF9

    oklch(93.6% 0.022 265.8)

  3. Step 200

    200

    #CDD9F5

    oklch(88.5% 0.041 267.1)

  4. Step 300

    300

    #ABC0F1

    oklch(80.9% 0.073 266.7)

  5. Step 400

    400

    #809EEA

    oklch(70.8% 0.117 267)

  6. Step 500

    500

    #6183E4

    oklch(63% 0.151 267.4)

  7. Step 600

    600 (this color)

    #5174DC

    oklch(58.6% 0.163 267.3)

  8. Step 700

    700

    #3A58B6

    oklch(49% 0.153 267.2)

  9. Step 800

    800

    #304993

    oklch(42.7% 0.125 267)

  10. Step 900

    900

    #2A3E75

    oklch(37.8% 0.097 266.7)

  11. Step 950

    950

    #192445

    oklch(26.9% 0.063 268.1)

Export this scale for Tailwind in the Tailwind colors tool

#5174DC 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)#3F81E00.035
Deuteranopia (no green cones)#2474DA0.037
Tritanopia (no blue cones)#008C9D0.138
Achromatopsia (no color)#7A7A7A0.163

Harmonies

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

Complementary

The opposite hue (180°).

  • #5174DC

    #5174DC

    oklch(58.6% 0.163 267.3)

  • #9A7600

    #9A7600

    oklch(58.5% 0.12 87.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5174DC

    #5174DC

    oklch(58.6% 0.163 267.3)

  • #0085BE

    #0085BE

    oklch(58.5% 0.129 237.4)

  • #8862CF

    #8862CF

    oklch(58.6% 0.163 297.2)

Open the analogous palette in the generator

Split complementary

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

  • #5174DC

    #5174DC

    oklch(58.6% 0.163 267.3)

  • #B96200

    #B96200

    oklch(58.7% 0.142 57.1)

  • #778600

    #778600

    oklch(58.7% 0.136 117.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5174DC

    #5174DC

    oklch(58.6% 0.163 267.3)

  • #CB4C43

    #CB4C43

    oklch(58.7% 0.163 27.3)

  • #1A953C

    #1A953C

    oklch(58.7% 0.164 147.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5174DC

    #5174DC

    oklch(58.6% 0.163 267.3)

  • #C44A7D

    #C44A7D

    oklch(58.7% 0.163 357.4)

  • #9A7600

    #9A7600

    oklch(58.5% 0.12 87.2)

  • #00917B

    #00917B

    oklch(58.7% 0.109 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 #5174DC, closest first.

Similar named colors

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

Use #5174DC 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.