Skip to content
Color Codes

CSS named color

RoyalBlue Color Code

RoyalBlue is a medium, vivid blue with the hex code #4169E1. In RGB it is rgb(65, 105, 225), in HSL hsl(225, 73%, 57%) and in CMYK cmyk(71%, 53%, 0%, 12%).

RoyalBlue
#4169E1

Color values

In CSS you can write it as the keyword royalblue.

White text on RoyalBlue has a contrast ratio of 4.85:1 and black text 4.33:1, so white text is the more readable choice.

The closest Tailwind CSS color is Blue 600 (#2563EB).

Use RoyalBlue in CSS

.element {
  color: royalblue;
  background-color: #4169e1;
  border-color: rgb(65, 105, 225);
}

Tints and shades of RoyalBlue

Ten steps from light to dark at the same hue. Click any swatch to copy it.

Colors that go with RoyalBlue

Color-wheel harmonies built from #4169E1. Click a swatch to copy it or open the set in the color wheel.

Complementary

Open in color wheel

Opposite hues for maximum contrast and energetic accents.

Neighboring hues for calm, cohesive surfaces.

Three evenly spaced hues for balanced, colorful systems.

Split complementary

Open in color wheel

A base plus the two neighbors of its complement — contrast with less tension.

Text contrast on RoyalBlue

Aa
White text
4.85:1
AA
Aa
Black text
4.33:1
AA · Large text
Check in the contrast checker

Colors similar to RoyalBlue

Palettes with similar colors

Questions about RoyalBlue

What is the hex code for RoyalBlue?

The hex code for RoyalBlue is #4169E1. Its RGB value is rgb(65, 105, 225) and its HSL value is hsl(225, 73%, 57%).

What colors go with RoyalBlue?

The complementary color of RoyalBlue is #E1B941. For a softer scheme try the analogous colors #41B9E1 and #6941E1; for a balanced three-color scheme use the triadic colors #E14169 and #69E141.

Is RoyalBlue readable as a text color?

On a white background RoyalBlue has a contrast ratio of 4.85:1, which passes WCAG AA for normal text (4.5:1). On black it reaches 4.33:1.

More blue colors