#5178A4

Closest named color: Stormy Blue (#507B9C). oklch(56.2% 0.082 252.2), rgb(81, 120, 164).

Aa

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

About this color

#5178A4 is a medium-dark, moderately saturated blue. In OKLCH its lightness is 56%, its chroma 0.082 and its hue 252°. Its hue sits on the cool side of the wheel. The nearest named color is Stormy Blue (#507B9C), ΔE 0.017 away. White text reads best on it, at 4.59:1.

Hue familyBlues
Lightnessmedium-dark (56%)
Chromamoderately saturated (0.082)
Temperaturecool
Nearest nameStormy Blue (#507B9C)
Black text4.57:1
White text4.59:1

Values

HEX#5178A4
RGBrgb(81, 120, 164)
HSLhsl(212, 34%, 48%)
OKLCHoklch(56.2% 0.082 252.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 #5178A4 4.59:1 AA Lc -77.3 Fine for body text
Black text on #5178A4 4.57:1 AA Lc 32.3 Non-text elements, placeholder text
#5178A4 text on white 4.59:1 AA Lc 71.8 Content text, not long reading
#5178A4 text on black 4.57:1 AA Lc -29.9 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

    #F3F6F9

    oklch(97.2% 0.005 247.9)

  2. Step 100

    100

    #E5EAF1

    oklch(93.5% 0.011 256.7)

  3. Step 200

    200

    #D0DAE7

    oklch(88.5% 0.021 254.9)

  4. Step 300

    300

    #B0C3D8

    oklch(80.9% 0.036 250.9)

  5. Step 400

    400

    #86A3C5

    oklch(70.6% 0.06 252.7)

  6. Step 500

    500

    #688DB6

    oklch(63.2% 0.075 251.6)

  7. Step 600

    600 (this color)

    #5178A4

    oklch(56.2% 0.082 252.2)

  8. Step 700

    700

    #40638B

    oklch(49.1% 0.076 252.6)

  9. Step 800

    800

    #355171

    oklch(42.7% 0.063 252.5)

  10. Step 900

    900

    #2E435B

    oklch(37.6% 0.049 252.4)

  11. Step 950

    950

    #1B2735

    oklch(26.8% 0.031 252.8)

Export this scale for Tailwind in the Tailwind colors tool

#5178A4 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)#667AA60.027
Deuteranopia (no green cones)#5C72A30.020
Tritanopia (no blue cones)#2982870.071
Achromatopsia (no color)#7575750.082

Harmonies

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

Complementary

The opposite hue (180°).

  • #5178A4

    #5178A4

    oklch(56.2% 0.082 252.2)

  • #936D3C

    #936D3C

    oklch(56.2% 0.082 71.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5178A4

    #5178A4

    oklch(56.2% 0.082 252.2)

  • #358098

    #358098

    oklch(56.3% 0.082 222.3)

  • #6E6FA4

    #6E6FA4

    oklch(56.3% 0.082 282.6)

Open the analogous palette in the generator

Split complementary

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

  • #5178A4

    #5178A4

    oklch(56.2% 0.082 252.2)

  • #9E654E

    #9E654E

    oklch(56.3% 0.082 42.7)

  • #7E773B

    #7E773B

    oklch(56.2% 0.081 102.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5178A4

    #5178A4

    oklch(56.2% 0.082 252.2)

  • #9F6168

    #9F6168

    oklch(56.3% 0.081 12.7)

  • #637F4C

    #637F4C

    oklch(56.1% 0.081 132)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5178A4

    #5178A4

    oklch(56.2% 0.082 252.2)

  • #966282

    #966282

    oklch(56.2% 0.08 342.5)

  • #936D3C

    #936D3C

    oklch(56.2% 0.082 71.9)

  • #448467

    #448467

    oklch(56.2% 0.081 162.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5178A4 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.