Palette maker

Royal Blue Color: Hex Code, RGB, HSL and Palettes

Royal blue is a vivid, slightly purplish blue with the hex code , which is rgb(65, 105, 225) in RGB and hsl(225, 73%, 57%) in HSL. It is also the CSS keyword royalblue.

On this page
  1. Color codes
  2. Similar blues
  3. History
  4. Pairings
  5. Palettes
  6. Web and UI
  7. Shades
  8. Branding
  9. Interiors
  10. Print
  11. Sport and art
  12. FAQ

The palette maker above builds monochrome, analogous, complementary, triadic and split palettes from this color, with HEX, RGB and HSL ready to copy. Below you will find the exact conversions, how royal blue differs from its neighbors, where the name comes from, and how to use it in screens, print, rooms and wardrobes.

Royal blue color codes in HEX, RGB, HSL and CMYK

Every value here is computed from . Screens use the first three rows. The CMYK row is a straight mathematical conversion, so treat it as a starting point for print rather than a promise.

Format Value
HEX
RGB 65, 105, 225 (25%, 41%, 88%)
HSL 225°, 73%, 57%
HSB/HSV 225°, 71%, 88%
CMYK (naive) 71, 53, 0, 12
CSS keyword royalblue
Nearest web-safe
Nearest Pantone about 2727 C

The blue channel at 225 dominates, and the green at 105 keeps it from tipping into violet. The hue angle of 225° sits halfway between azure at 210° and pure blue at 240°, which is exactly why royal blue feels a little regal: it has a hint of purple without being purple.

Royal blue next to the blues it gets mistaken for

Most “wrong blue” mistakes come from lightness and saturation, not hue. Royal blue sits in the middle of the lightness range, so it is easy to confuse with blues that are darker or duller.

Navy () and the shades on our dark blue page are far deeper. They work as a base or text color. Royal blue is the one you notice first.

Cobalt, sapphire and cornflower

Cobalt blue () is darker and purer, with less violet. Sapphire () is a touch deeper and more jewel-like. Cornflower blue () is lighter and softer, closer to periwinkle.

Denim and ocean blue

Denim blue is more faded and worn, like fabric that has been washed. Ocean blue pulls toward teal and green. Royal blue has neither the softness of denim nor the sea-green drift of ocean tones.

Where the name royal blue came from

The name is generally dated to the late 1700s or early 1800s in England. The popular story says clothmakers from Somerset (Rode and Scutts Bridge Mill are named in different tellings) won a contest to dye a robe for Queen Charlotte, wife of George III, and were then allowed to sell the shade as royal blue.

That story is a local tradition, and no contemporary record of the commission has turned up, so it is best told as a legend. What is solid is that “queen’s blue” was in use as a color name from 1661, and that “imperial blue” is recorded as another name for the traditional shade.

Two royal blues, one name

Traditional royal blue is deep, around . The web color royalblue is the brighter . Always check which one a brief or brand guide means.

The brighter version comes from the X11 color list of 1987, which the web later inherited. When the W3C standardized the keyword royalblue, it fixed it to this brighter color rather than the old, darker one.

Colors that go with royal blue

Royal blue is strong enough to carry a layout with very few partners. Here are the classic harmonies, which the palette maker above will generate for you, with exact values:

  • Complementary: warm gold
  • Analogous: sky cyan and violet
  • Triadic: raspberry and fresh green

Gold is the most reliable partner. It turns royal blue into something ceremonial, like a medal ribbon or a school crest. For a quieter result, use white or warm cream, then add a cool neutral such as gunmetal grey for text and borders.

Which color sits directly opposite royal blue (#4169E1) on the color wheel?

Rotating the hue 180 degrees from 225 lands on 45, which is that warm gold.

If you want an analogous mood, push toward violet. Orchid purple sits comfortably beside royal blue because both share a cool, saturated feel, and the shift from blue to purple reads as depth rather than clash.

Two gradient bars from royal blue to gold, one turning gray in the middle and one fixed with a cream midpoint stop
A blue to gold gradient turns gray at 50%; adding a cream midpoint stop keeps it clean.

Royal blue palettes you can copy

These four palettes each keep royal blue as the anchor and change the supporting cast. Crown Jewels and Studio Neutrals are the safest for serious interfaces. Match Day is the most playful.

Crown Jewels

Premium brands, invitations and finance dashboards that need a confident, ceremonial feel.

Harbour Morning

Travel sites, wellness apps and calm landing pages with a fresh, airy blue range.

Match Day

Sports graphics, event posters and youthful campaigns that want punch and clean contrast.

Studio Neutrals

Portfolios, SaaS interfaces and editorial layouts where royal blue is the single accent.

Copy the hex codes straight from the swatches below, or open any of them in the palette maker to adjust lightness and see the RGB and HSL values.

Using royal blue in web and UI design

Royal blue is a strong accent. It works well on primary buttons, active tabs, links and chart highlights. Across a full-page background it tires the eye quickly, so I usually keep it to under a fifth of the visible surface and let neutrals do the rest.

Which text color passes WCAG AA for normal-size text on a #4169E1 background?

White gives about 4.85:1, which clears 4.5:1, while black gives about 4.33:1 and falls short.

Here is a minimal setup with custom properties:

Seven-step royal blue ladder from dark shade to light tint with hex codes, showing where text flips from white to dark
White text passes on #4169E1 and darker steps; lighter tints need dark text.
:root {
  --royal-blue: #4169e1;
  --royal-blue-deep: #273f87;
  --royal-blue-tint: #d9e1f9;
}
.btn-primary {
  background: var(--royal-blue);
  color: #fff;
}
a { color: var(--royal-blue-deep); }

On accessibility, white text on has a contrast ratio of about 4.85:1, which passes WCAG AA for normal text. Black on it is about 4.33:1, which only passes for large text. On a client dashboard I once set royal blue links on a pale grey card (), where the ratio fell to about 4.3:1. Switching link text to raised it to about 9.8:1 on white and fixed the audit.

Try this: Paste and your lightest card background into a contrast checker. If the ratio is under 4.5:1, move body links to and keep royal blue for buttons and icons.

A royal blue shade and tint scale

A usable design system needs more than one blue. These steps are made by mixing with black or white, so they stay in the same family:

  • : 60% black, for dark headers and footers
  • : 40% black, for link text and hover states
  • : the base
  • : 40% white, for focus rings and secondary icons
  • : 60% white, for borders and disabled fills
  • : 80% white, for tinted backgrounds

Tints made this way stay clean and slightly cool. Shades toward black can feel flat, so on large dark areas I sometimes shift them a touch toward violet.

For gradients, royal blue to violet is a natural fit: linear-gradient(135deg, #4169E1, #6941E1). If you are working on dark themes, our black gradient guide shows how to blend near-black bases without banding.

Royal blue in branding and logos

Royal blue tells people a brand is dependable but not stuffy. It appears often in banking, software, healthcare and education, where trust matters but pure corporate navy feels too heavy. It also photographs well on white packaging because the saturation holds up.

On a fintech identity I worked on, we tested a navy primary against royal blue. Navy looked safe but disappeared beside competitors, while royal blue gave the logo presence on small app icons. We kept navy for text and used royal blue for the mark.

For a logo, pair it with white or a single warm accent. If the logo needs to work in one color, check it in grayscale: royal blue turns into a mid-dark grey, which holds up well on light paper.

Royal blue in interiors and fashion

In a room, royal blue is a statement color. A single wall, a velvet sofa or a set of ceramic tiles gives a space energy without overwhelming it. Pair it with warm woods, brass, and off-white walls so the blue feels intentional rather than cold.

In clothing, it flatters a wide range of skin tones because it has enough depth to contrast with them and enough brightness to lift them. A royal blue dress or suit with gold or tan accessories is a reliable look for events, and white or cream keeps it fresh in summer.

If you like retro looks, royal blue shows up in the saturated, high-chroma blues of the 70s color palette, usually next to browns, oranges and cream.

Printing royal blue without surprises

Bright screen blues often sit outside what a CMYK press can produce. I learned this on a brochure proof where came back flatter and slightly duller than it looked on my monitor. The ink build was correct. The press simply could not reach that saturation.

The practical fix is to proof early. Ask the printer for a physical proof, and if the blue matters for a brand, consider a spot ink such as a Pantone close to 2727 C. Never judge a print blue from a screen preview alone, and do not assume the CMYK row of 71, 53, 0, 12 will land exactly on the screen color.

Royal blue in sport, flags and art

Many football and club kits use some version of royal blue, though most differ from the web color. If you need official accuracy for a team or national flag, use the colors from that organization’s own style guide. Deeper flag blues, such as the one on the Brazil flag, sit closer to traditional royal blue than to .

For artists, mixing it in paint starts with ultramarine blue and a little white. If the result looks too violet, adjust with a small amount of a greener blue. In digital painting, a royal blue base with lighter cyan highlights and deeper violet shadows gives strong, colorful depth.

Royal blue also gives a very legible color in data visualization. It reads clearly against white and against gold, so it makes a good first series color in charts.

Colors close to royal blue

Royal Blue Color: questions people ask

What is the hex code for royal blue?

The web and CSS royal blue is #4169E1, which is rgb(65, 105, 225) and hsl(225, 73%, 57%). Older, traditional royal blue is a much deeper shade, so check which one a brief means.

What is the difference between royal blue and navy?

Royal blue is bright, saturated and slightly purplish, with an HSL lightness of about 57%. Navy (#000080) is far darker and quieter, so it reads as a neutral where royal blue reads as an accent.

Is royal blue a warm or cool color?

Cool. Its hue of 225 degrees sits halfway between azure and pure blue, and the slight violet lean makes it feel richer rather than warmer.

What text color works on royal blue?

White. It reaches about 4.85:1 on #4169E1, which passes WCAG AA for normal text. Black reaches only about 4.33:1, which is fine for large text but not for body copy.

What colors go well with royal blue?

Gold or mustard (#E1B941 is the exact complement), white, cream and cool greys are the safest. Coral pinks and sky blues give a livelier, more youthful result.

Keep exploring