#5270E3

Closest named color: Royal Blue (#4169E1). oklch(58.3% 0.177 269.3), rgb(82, 112, 227).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (58%)
Chromavivid (0.177)
Temperaturecool
Nearest nameRoyal Blue (#4169E1)
Black text4.78:1
White text4.38:1

Values

HEX#5270E3
RGBrgb(82, 112, 227)
HSLhsl(228, 72%, 61%)
OKLCHoklch(58.3% 0.177 269.3)

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 #5270E3 4.38:1 AA large text Lc -75.6 Fine for body text
Black text on #5270E3 4.78:1 AA Lc 34.0 Non-text elements, placeholder text
#5270E3 text on white 4.38:1 AA large text Lc 70.1 Content text, not long reading
#5270E3 text on black 4.78:1 AA Lc -31.6 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

    #ACBFF5

    oklch(80.9% 0.079 269.5)

  5. Step 400

    400

    #809CF0

    oklch(70.7% 0.127 269)

  6. Step 500

    500

    #6281EB

    oklch(63.1% 0.163 269.1)

  7. Step 600

    600 (this color)

    #5270E3

    oklch(58.3% 0.177 269.3)

  8. Step 700

    700

    #3C55BD

    oklch(49.1% 0.166 269.2)

  9. Step 800

    800

    #324699

    oklch(42.7% 0.137 269.5)

  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

#5270E3 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)#2D7FE70.044
Deuteranopia (no green cones)#0072E10.049
Tritanopia (no blue cones)#008B9F0.149
Achromatopsia (no color)#7878780.178

Harmonies

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

Complementary

The opposite hue (180°).

  • #5270E3

    #5270E3

    oklch(58.3% 0.177 269.3)

  • #977700

    #977700

    oklch(58.4% 0.119 89.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #5270E3

    #5270E3

    oklch(58.3% 0.177 269.3)

  • #0084C0

    #0084C0

    oklch(58.3% 0.131 239)

  • #8C5CD4

    #8C5CD4

    oklch(58.3% 0.178 299.3)

Open the analogous palette in the generator

Split complementary

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

  • #5270E3

    #5270E3

    oklch(58.3% 0.177 269.3)

  • #B56300

    #B56300

    oklch(58.3% 0.138 59.2)

  • #738600

    #738600

    oklch(58.4% 0.138 119.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #5270E3

    #5270E3

    oklch(58.3% 0.177 269.3)

  • #CF4537

    #CF4537

    oklch(58.3% 0.177 29.3)

  • #009440

    #009440

    oklch(58.2% 0.163 149.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #5270E3

    #5270E3

    oklch(58.3% 0.177 269.3)

  • #C94178

    #C94178

    oklch(58.3% 0.178 359.4)

  • #977700

    #977700

    oklch(58.4% 0.119 89.8)

  • #008F7D

    #008F7D

    oklch(58.2% 0.106 179.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #5270E3 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.