#5271E2

Closest named color: Royal Blue (#4169E1). oklch(58.5% 0.175 268.9), rgb(82, 113, 226).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (58%)
Chromavivid (0.175)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.81:1
White text4.35:1

Values

HEX#5271E2
RGBrgb(82, 113, 226)
HSLhsl(227, 71%, 60%)
OKLCHoklch(58.5% 0.175 268.9)

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 #5271E2 4.35:1 AA large text Lc -75.3 Fine for body text
Black text on #5271E2 4.81:1 AA Lc 34.2 Non-text elements, placeholder text
#5271E2 text on white 4.35:1 AA large text Lc 69.9 Content text, not long reading
#5271E2 text on black 4.81:1 AA Lc -31.8 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

    #E3EAFA

    oklch(93.6% 0.023 266.9)

  3. Step 200

    200

    #CDD9F7

    oklch(88.6% 0.043 268.2)

  4. Step 300

    300

    #ACBFF4

    oklch(80.9% 0.078 269.3)

  5. Step 400

    400

    #809CEF

    oklch(70.6% 0.126 268.9)

  6. Step 500

    500

    #6281EA

    oklch(63.1% 0.161 269)

  7. Step 600

    600 (this color)

    #5271E2

    oklch(58.5% 0.175 268.9)

  8. Step 700

    700

    #3C56BB

    oklch(49.1% 0.162 268.8)

  9. Step 800

    800

    #314798

    oklch(42.7% 0.135 268.7)

  10. Step 900

    900

    #2B3C79

    oklch(37.7% 0.106 269.1)

  11. Step 950

    950

    #192447

    oklch(27.1% 0.067 268.5)

Export this scale for Tailwind in the Tailwind colors tool

#5271E2 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)#3180E60.043
Deuteranopia (no green cones)#0073E00.049
Tritanopia (no blue cones)#008B9F0.146
Achromatopsia (no color)#7979790.175

Harmonies

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

Complementary

The opposite hue (180°).

  • #5271E2

    #5271E2

    oklch(58.5% 0.175 268.9)

  • #987700

    #987700

    oklch(58.5% 0.12 89.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5271E2

    #5271E2

    oklch(58.5% 0.175 268.9)

  • #0084C0

    #0084C0

    oklch(58.3% 0.131 239)

  • #8C5ED3

    #8C5ED3

    oklch(58.6% 0.174 299.1)

Open the analogous palette in the generator

Split complementary

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

  • #5271E2

    #5271E2

    oklch(58.5% 0.175 268.9)

  • #B66300

    #B66300

    oklch(58.4% 0.139 58.8)

  • #748600

    #748600

    oklch(58.5% 0.137 118.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5271E2

    #5271E2

    oklch(58.5% 0.175 268.9)

  • #CF4639

    #CF4639

    oklch(58.4% 0.175 28.9)

  • #00953F

    #00953F

    oklch(58.5% 0.165 149)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5271E2

    #5271E2

    oklch(58.5% 0.175 268.9)

  • #C84379

    #C84379

    oklch(58.4% 0.175 359.1)

  • #987700

    #987700

    oklch(58.5% 0.12 89.2)

  • #00907D

    #00907D

    oklch(58.5% 0.107 179.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5271E2 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.