A vivid medium blue, white text passes AA

What color is royalblue?

The CSS named color royalblue is #4169e1, or rgb(65 105 225): a vivid medium blue in plain words. White text on it reaches 4.85:1, passing WCAG AA, and Recolor (recolor.page) can put it on a real page.

Last updated

#4169e1royalblue
The keyword's value in CSS Color 4 (culori's list of named colors), converted with Recolor's color code, October 9, 2026
FormatValue
Keywordroyalblue
Hex#4169e1
RGBrgb(65 105 225)
HSLhsl(225 73% 57%)
OKLCHoklch(56.0% 0.188 266.4)
Nearest Tailwind colorblue-600 #155dfc, 0.060 away in OKLab
White text4.85:1: AA passes, AAA fails, large text passes
Black text4.33:1: AA fails, AAA fails, large text passes

About royalblue

Measured in OKLCH, royalblue comes out at lightness 56.0%, chroma 0.188 and hue 266.4 degrees: a vivid medium blue.

Here HSL's lightness, 57%, lands near OKLCH's 56.0%, which is not true of every color. No CSS keyword matches it; slateblue (#6a5acd) is the nearest, 0.064 away in OKLab, a clear step off.

White is the ink for royalblue: 4.85:1 passes AA for body text, where black stops at 4.33:1. Its neighbors in the hue-sorted list of names are steelblue and blue.

The closest Tailwind 4.3.3 color is blue-600, 0.060 away in OKLab, so bg-blue-600 comes near; bg-[#4169e1] gives the color itself.

Tints and shades

  1. #dde7fd
  2. #bccff9
  3. #9cb6f4
  4. #7c9def
  5. #5e84e8
  6. #4169e1
  7. #3151b0
  8. #223a82
  9. #132456
  10. #06102f
  11. #01020b

From light to dark: 5 toward white and 5 toward black, mixed in OKLCH a sixth of the way at a time with the hue kept. A step that would repeat its neighbor is left out.

A palette around it

  1. #4169e1
  2. #1a243e
  3. #9ab1f0
  4. #5d543e
  5. #d4defb

Around royalblue as swatch 1, Recolor's generator made a complementary palette, built on the hue opposite: #1a243e, #9ab1f0, #5d543e, #d4defb, drawn from a seed fixed by its hex. Open it in Recolor.

Using royalblue

As a text color, royalblue on a white page gives the same 4.85:1.

CSS
.notice {
  background-color: royalblue; /* #4169e1 */
  color: white; /* 4.85:1 */
}

Common questions

Does white text pass WCAG AA on royalblue?

Yes. White text measures 4.85:1 on royalblue, above the 4.5:1 that WCAG AA asks of body text.

Can royalblue be written in OKLCH?

Yes: oklch(56.0% 0.188 266.4), computed from #4169e1. A named color is an sRGB color, so its OKLCH value converts back to the same hex.

Is there a named color close to royalblue?

No. The nearest, slateblue (#6a5acd), is 0.064 away in OKLab, a different color.

Sources