Royal Blue Color Code (#4169e1)

Royal Blue is #4169e1 in hex and rgb(65, 105, 225) — a medium blue. Below: every color format, tints and shades, harmonies and how readable it is as text.

Updated

Royal Blue
#4169e1
CSS nameroyalblue
Hex#4169e1
RGBrgb(65, 105, 225)
HSLhsl(225 73% 57%)
HWBhwb(225 25% 12%)
CMYK71%, 53%, 0%, 12%

Tints and shades

Color harmonies

About Royal Blue

Royal Blue (royalblue) is a medium, vivid blue with the hex code #4169e1, or rgb(65, 105, 225). In HSL it sits at a hue of 225°, 73% saturation and 57% lightness. It is one of the 148 named colors every browser understands, so you can write color: royalblue; instead of the hex value.

Using Royal Blue for text and backgrounds

PairingContrast ratioWCAG
Royal Blue text on white4.85 : 1AA
Royal Blue text on black4.33 : 1AA large text only

On a royal blue background, use white text (4.85 : 1). WCAG asks for at least 4.5 : 1 for body text and 3 : 1 for large text. Check other pairs with the Contrast Checker.

CSS

.element {
  color: royalblue;               /* or #4169e1 */
  background-color: #4169e1;
  border: 1px solid rgb(65 105 225 / 50%);
}

Similar named colors

Slate Blue (#6a5acd), Steel Blue (#4682b4), Cornflower Blue (#6495ed), Medium Slate Blue (#7b68ee), Dodger Blue (#1e90ff), Medium Purple (#9370db).

Color Name FinderPaste a HEX code to get its closest human-readable name and clean token names for your CSS, SCSS, JavaScript or Tailwind config.
Open the tool

Frequently asked questions

What is the hex code for royal blue?
#4169e1 — that is rgb(65, 105, 225) and hsl(225, 73%, 57%). In CSS you can also just write royalblue.
Is royal blue text readable on white?
Its contrast ratio on white is 4.85 : 1, which passes WCAG AA for normal text.
What colors go well with royal blue?
Its complementary color is #e1b941; analogous colors #41b9e1 and #6941e1 sit next to it on the color wheel.