#5159C5

Closest named color: Iris (#6258C4). oklch(51.7% 0.166 275.8), rgb(81, 89, 197).

Aa

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

About this color

#5159C5 is a medium-dark, vivid blue. In OKLCH its lightness is 52%, its chroma 0.166 and its hue 276°. Its hue sits on the cool side of the wheel. The nearest named color is Iris (#6258C4), ΔE 0.025 away. White text reads best on it, at 5.85:1.

Hue familyBlues
Lightnessmedium-dark (52%)
Chromavivid (0.166)
Temperaturecool
Nearest nameIris (#6258C4)
Black text3.58:1
White text5.85:1

Values

HEX#5159C5
RGBrgb(81, 89, 197)
HSLhsl(236, 50%, 55%)
OKLCHoklch(51.7% 0.166 275.8)

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 #5159C5 5.85:1 AA Lc -84.2 Fine for body text
Black text on #5159C5 3.58:1 AA large text Lc 25.1 Dividers and decoration only
#5159C5 text on white 5.85:1 AA Lc 79.0 Fine for body text
#5159C5 text on black 3.58:1 AA large text Lc -22.8 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 700.

  1. Step 50

    50

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E5E9FA

    oklch(93.6% 0.023 275.4)

  3. Step 200

    200

    #D0D7F7

    oklch(88.4% 0.045 275.7)

  4. Step 300

    300

    #B2BDF5

    oklch(80.9% 0.08 275.8)

  5. Step 400

    400

    #8B99F0

    oklch(70.8% 0.128 275.7)

  6. Step 500

    500

    #707DEB

    oklch(63.2% 0.164 275.6)

  7. Step 600

    600

    #5A63D9

    oklch(55.6% 0.178 275.7)

  8. Step 700

    700 (this color)

    #5159C5

    oklch(51.7% 0.166 275.8)

  9. Step 800

    800

    #3D4398

    oklch(42.7% 0.137 275.9)

  10. Step 900

    900

    #333A79

    oklch(37.8% 0.106 275.3)

  11. Step 950

    950

    #1E2247

    oklch(27% 0.068 276.2)

Export this scale for Tailwind in the Tailwind colors tool

#5159C5 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)#0B6AC90.062
Deuteranopia (no green cones)#0060C30.060
Tritanopia (no blue cones)#0072860.145
Achromatopsia (no color)#6565650.166

Harmonies

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

Complementary

The opposite hue (180°).

  • #5159C5

    #5159C5

    oklch(51.7% 0.166 275.8)

  • #7B6700

    #7B6700

    oklch(51.8% 0.106 95.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5159C5

    #5159C5

    oklch(51.7% 0.166 275.8)

  • #006DAE

    #006DAE

    oklch(51.7% 0.131 245.4)

  • #8047B2

    #8047B2

    oklch(51.7% 0.167 305.9)

Open the analogous palette in the generator

Split complementary

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

  • #5159C5

    #5159C5

    oklch(51.7% 0.166 275.8)

  • #945800

    #945800

    oklch(51.7% 0.115 65.7)

  • #567400

    #567400

    oklch(51.6% 0.131 125.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5159C5

    #5159C5

    oklch(51.7% 0.166 275.8)

  • #B33713

    #B33713

    oklch(51.7% 0.166 35.6)

  • #007D48

    #007D48

    oklch(51.8% 0.126 155.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5159C5

    #5159C5

    oklch(51.7% 0.166 275.8)

  • #B0305A

    #B0305A

    oklch(51.6% 0.166 5.5)

  • #7B6700

    #7B6700

    oklch(51.8% 0.106 95.6)

  • #007970

    #007970

    oklch(51.8% 0.091 185.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5159C5 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.