Toolman

royalblue — #4169E1

#4169E1

rgb(65, 105, 225) · hsl(225, 73%, 57%) · CSS keyword royalblue

Can you put text on it?

ContrastBody textLarge text
royalblue on white4.85:1AAAA
royalblue on black4.33:1AA

As a background, royalblue takes white text: 4.85:1 against 4.33:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: royalblue;
color: #4169e1;
color: rgb(65 105 225);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to royalblue

Frequently asked questions

What is the hex code for royalblue?

The hex code for royalblue is #4169E1 — RGB 65, 105, 225.

Can I use royalblue for text?

Yes. royalblue reaches 4.85:1 against white, past the 4.5:1 that WCAG AA asks for body text.

Should text on royalblue be black or white?

White — 4.85:1 against 4.33:1 the other way.

Other named colours

#4169E1 in full — tints, shades and harmonies · All named colours · Colour reference