#5271D4

Closest named color: Royal Blue (#4169E1). oklch(57.5% 0.156 268.2), rgb(82, 113, 212).

Aa

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

About this color

#5271D4 is a medium-dark, vivid blue. In OKLCH its lightness is 58%, its chroma 0.156 and its hue 268°. 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.67:1.

Hue familyBlues
Lightnessmedium-dark (58%)
Chromavivid (0.156)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.67:1
White text4.49:1

Values

HEX#5271D4
RGBrgb(82, 113, 212)
HSLhsl(226, 60%, 58%)
OKLCHoklch(57.5% 0.156 268.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 #5271D4 4.49:1 AA large text Lc -76.4 Fine for body text
Black text on #5271D4 4.67:1 AA Lc 33.1 Non-text elements, placeholder text
#5271D4 text on white 4.49:1 AA large text Lc 70.9 Content text, not long reading
#5271D4 text on black 4.67:1 AA Lc -30.7 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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF8

    oklch(93.7% 0.02 267.3)

  3. Step 200

    200

    #CED9F4

    oklch(88.5% 0.039 267.9)

  4. Step 300

    300

    #ADC0EF

    oklch(81% 0.07 267.6)

  5. Step 400

    400

    #839EE7

    oklch(70.8% 0.112 268)

  6. Step 500

    500

    #6583E0

    oklch(63% 0.144 268.6)

  7. Step 600

    600 (this color)

    #5271D4

    oklch(57.5% 0.156 268.2)

  8. Step 700

    700

    #3E59B2

    oklch(49.2% 0.145 268)

  9. Step 800

    800

    #334990

    oklch(42.7% 0.12 268.1)

  10. Step 900

    900

    #2C3E73

    oklch(37.7% 0.093 267.7)

  11. Step 950

    950

    #1A2443

    oklch(26.9% 0.06 268.7)

Export this scale for Tailwind in the Tailwind colors tool

#5271D4 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)#407DD80.033
Deuteranopia (no green cones)#2A71D20.036
Tritanopia (no blue cones)#0088980.135
Achromatopsia (no color)#7777770.156

Harmonies

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

Complementary

The opposite hue (180°).

  • #5271D4

    #5271D4

    oklch(57.5% 0.156 268.2)

  • #967400

    #967400

    oklch(57.6% 0.118 88.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5271D4

    #5271D4

    oklch(57.5% 0.156 268.2)

  • #0082BB

    #0082BB

    oklch(57.6% 0.128 238)

  • #8660C7

    #8660C7

    oklch(57.5% 0.155 298.4)

Open the analogous palette in the generator

Split complementary

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

  • #5271D4

    #5271D4

    oklch(57.5% 0.156 268.2)

  • #B36000

    #B36000

    oklch(57.5% 0.138 58)

  • #728300

    #728300

    oklch(57.6% 0.135 118.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5271D4

    #5271D4

    oklch(57.5% 0.156 268.2)

  • #C44C41

    #C44C41

    oklch(57.5% 0.156 28.1)

  • #1B913F

    #1B913F

    oklch(57.6% 0.156 148.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5271D4

    #5271D4

    oklch(57.5% 0.156 268.2)

  • #BE4A78

    #BE4A78

    oklch(57.6% 0.155 358.5)

  • #967400

    #967400

    oklch(57.6% 0.118 88.1)

  • #008D79

    #008D79

    oklch(57.6% 0.106 178)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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