royalblue royalblue #4169e1

royalblue is #4169e1 in hexadecimal, rgb(65, 105, 225) in decimal and hsl(225, 73, 57) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.

HEX · RGB · HSL

#4169e1
HEX#4169e1
RGBrgb(65, 105, 225)
HSLhsl(225, 73%, 57%)

Harmonies

Complementary

#e1b941

Analogous

#41b9e1#6941e1

Triadic

#e14169#69e141

Split complementary

#e16941#b9e141

Tints & shades

#214ed4#2b58de#4169e1#577be5#6989e8

Accessibility

vs #ffffff4.85:1
vs #0000004.33:1
Suggested text color#ffffff · 4.85:1 · WCAG AA

Similar named colors

slateblue#6a5acdsteelblue#4682b4cornflowerblue#6495edmediumslateblue#7b68eedodgerblue#1e90ffmediumpurple#9370db

FAQ

What is the HEX code for royalblue?

royalblue is #4169e1 in hex, rgb(65, 105, 225) in decimal and hsl(225, 73%, 57%) in HSL. In CSS you can write either color: royalblue; or color: #4169e1; — they are equivalent.

What colors go with royalblue?

The complementary #e1b941 gives the strongest contrast, the analogous pair #41b9e1 / #6941e1 is the safest, and the triad #e14169 / #69e141 adds more tension. All three are derived from the 225° hue of #4169e1.

Does #4169e1 read better on white or black?

Its contrast is 4.85:1 against white and 4.33:1 against black. Use #ffffff text on it — that gives 4.85:1, which meets WCAG AA.

Is a named color different from a hex color?

No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.

← All named colors