Royal blue is a vivid, slightly violet blue. The CSS keyword royalblue is exactly #4169E1 — the same HEX that anchors all three palettes below. Copy the HEX codes from any scheme below, or generate a harmonious royal-blue palette anchored to a base colour you pick.
Royal Blue Palette Ideas & HEX Codes
Classic Royal Blue is the tightest set, 225°–229° hue across 26%–69% lightness. Royal & Sky pulls the dark end toward a truer blue (#002855, #023E8A) and the light end up to #90C2FF. Deep Royal is the most violet of the three, holding 229°–233° throughout.
Classic Royal Blue
#0A1F7A
#1E3AA8
#2E4FD4
#4169E1
#7089F0
Royal & Sky
#002855
#023E8A
#0353A4
#4169E1
#90C2FF
Deep Royal
#0B1354
#16257A
#2438A8
#3552D6
#5C77F0
Anchored to a royal blue base — press Space or Generate to roll more schemes. Click a swatch to copy its HEX, lock one to keep it while the rest re-roll, then export as CSS, JSON or HEX.
Free, no sign-up Generated in your browser CSS, JSON & HEX export
Drag in the colour area or the hue bar, or type a HEX / RGB value, then build a scheme anchored to it.
What Goes With Royal Blue
Royal blue is saturated and confident, so most palettes give it white or a light grey to breathe against plus one warm accent — gold for formality, orange for energy. It is a standard choice for sport, finance and institutional branding. Navy is the muted version, dark blue the broader family and jewel tones the set it belongs to.
Frequently Asked Questions
What HEX codes make a royal blue palette?
Royal blue is a vivid, slightly purple blue: build from a deep navy anchor (#0A1F7A, #002855), a true royal blue (#4169E1) and a light sky tint (#7089F0, #90C2FF). The bright, saturated depth is what gives it a confident, regal feel. The Classic Royal Blue, Royal & Sky and Deep Royal rows above each carry five codes, which is usually the right number: two darks, a mid and two tints. Across all three the extremes are #0B1354 and #90C2FF, which contrast at 9.1:1 — enough for body text at any size under WCAG AA and AAA.
What is the difference between royal blue and navy?
Royal blue and navy differ in saturation and lightness. Royal blue #4169E1 is 57% light at 73% saturation — bright enough to work as an accent. Navy #1B263B is 17% light at 37% — dark enough to work as a background. They sit close in hue, 225° and 219°, which is why they combine rather than compete.
How do I use these colours in CSS?
Click Copy CSS for a ready-to-paste :root block with each colour as a custom property (--color-1, --color-2 and so on), or copy a single HEX straight from any swatch above. If a ready-made set is easier, the Classic Royal Blue row above reads #0A1F7A through #7089F0 and you can type those five in as the custom properties yourself. The generator instead rolls around #4169E1, the base royal blue this page is anchored to. Copy JSON gives an array and Copy HEX a comma-separated line when a :root block is not what your project wants.
Which royal blue shades are readable as text on white?
The deeper royal blue shades work as body text on white and the pale ones do not. The base shade used here, #4169E1, gives 4.8:1 against #FFFFFF, past the 4.5:1 WCAG AA minimum for body text. The darkest code on this page, #0B1354, reaches 16.9:1 on white and clears WCAG AA for body text and AAA as well. The palest, #90C2FF, sits at 1.8:1 and belongs behind text rather than in it, with something dark on top.