#5272E1

Closest named color: Royal Blue (#4169E1). oklch(58.6% 0.172 268.5), rgb(82, 114, 225).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (59%)
Chromavivid (0.172)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.85:1
White text4.32:1

Values

HEX#5272E1
RGBrgb(82, 114, 225)
HSLhsl(227, 70%, 60%)
OKLCHoklch(58.6% 0.172 268.5)

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 #5272E1 4.32:1 AA large text Lc -75.1 Fine for body text
Black text on #5272E1 4.85:1 AA Lc 34.4 Non-text elements, placeholder text
#5272E1 text on white 4.32:1 AA large text Lc 69.6 Content text, not long reading
#5272E1 text on black 4.85:1 AA Lc -32.0 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

    #E3EAF9

    oklch(93.6% 0.022 265.8)

  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

    #809DEE

    oklch(70.8% 0.123 268.2)

  6. Step 500

    500

    #6282E9

    oklch(63.2% 0.159 268.6)

  7. Step 600

    600 (this color)

    #5272E1

    oklch(58.6% 0.172 268.5)

  8. Step 700

    700

    #3C56BA

    oklch(49% 0.16 268.8)

  9. Step 800

    800

    #314797

    oklch(42.7% 0.134 268.6)

  10. Step 900

    900

    #2B3D78

    oklch(37.8% 0.103 268.4)

  11. Step 950

    950

    #192446

    oklch(27% 0.065 268.3)

Export this scale for Tailwind in the Tailwind colors tool

#5272E1 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)#3580E50.040
Deuteranopia (no green cones)#0D73DF0.047
Tritanopia (no blue cones)#008C9F0.145
Achromatopsia (no color)#7979790.173

Harmonies

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

Complementary

The opposite hue (180°).

  • #5272E1

    #5272E1

    oklch(58.6% 0.172 268.5)

  • #997700

    #997700

    oklch(58.6% 0.12 88.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5272E1

    #5272E1

    oklch(58.6% 0.172 268.5)

  • #0085C0

    #0085C0

    oklch(58.6% 0.131 238.4)

  • #8B5FD3

    #8B5FD3

    oklch(58.6% 0.173 298.4)

Open the analogous palette in the generator

Split complementary

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

  • #5272E1

    #5272E1

    oklch(58.6% 0.172 268.5)

  • #B76300

    #B76300

    oklch(58.5% 0.139 58.4)

  • #758600

    #758600

    oklch(58.6% 0.137 118.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5272E1

    #5272E1

    oklch(58.6% 0.172 268.5)

  • #CE483C

    #CE483C

    oklch(58.6% 0.172 28.5)

  • #00963D

    #00963D

    oklch(58.7% 0.168 148.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5272E1

    #5272E1

    oklch(58.6% 0.172 268.5)

  • #C8457B

    #C8457B

    oklch(58.7% 0.173 358.5)

  • #997700

    #997700

    oklch(58.6% 0.12 88.6)

  • #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 #5272E1, closest first.

Similar named colors

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

Use #5272E1 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.