Royal Blue Color Palette
Royal Blue is hex #4169E1, rgb(65, 105, 225). Royal blue is a bright, rich blue associated with British royalty. The CSS royalblue (#4169E1) is a lighter, friendlier version of the traditional deep shade.
By Mohamed Farhan · Updated Oct 19, 2026
Royal Blue color codes
Reading the royal blue color codes
The hex code #4169E1 is three pairs of base-16 numbers for red, green and blue. 41 is 65, 69 is 105 and E1 is 225, each on a scale from 0 to 255. That is why the same color is written rgb(65, 105, 225) in CSS. The blue channel is the strongest here, which is what gives royal blue its blue character.
HSL describes the same color the way people think about it. A hue of 225 degrees places royal blue in the blue part of the color wheel. Saturation of 73% makes it vivid, and lightness of 57% makes it a mid-tone color. HSL is the easiest format to adjust by hand: keep the hue, then raise or lower lightness to create tints and shades that stay in the same family.
For print, the approximate CMYK mix is 71% cyan, 53% magenta, 0% yellow and 12% black. Screen and print colors never match perfectly, because monitors emit light while ink absorbs it, so always proof a printed sample before committing to royal blue for packaging or stationery. See MDN's guide to CSS color values for every format browsers accept.
Royal Blue shades and tints
A full 50 to 950 scale built around #4169E1, so you can use royal blue for backgrounds, borders, buttons and text without leaving the family. Click any shade to copy it.
// tailwind.config.js
theme: {
extend: {
colors: {
"royal-blue": {
50: "#D9E1F9",
100: "#BBC9F4",
200: "#9CB1EF",
300: "#7E99EB",
400: "#5F81E6",
500: "#4169E1",
600: "#385AC2",
700: "#2E4CA4",
800: "#253D85",
900: "#1C2F67",
950: "#122048",
},
},
},
}:root {
--royal-blue-50: #D9E1F9;
--royal-blue-100: #BBC9F4;
--royal-blue-200: #9CB1EF;
--royal-blue-300: #7E99EB;
--royal-blue-400: #5F81E6;
--royal-blue-500: #4169E1;
--royal-blue-600: #385AC2;
--royal-blue-700: #2E4CA4;
--royal-blue-800: #253D85;
--royal-blue-900: #1C2F67;
--royal-blue-950: #122048;
}A shade-by-shade guide to royal blue
The 50 to 950 scale above follows the same structure as Tailwind's built-in palettes, so each step has a natural job. The lightest steps, 50 (#D9E1F9) and 100 (#BBC9F4), are page and card backgrounds: they carry the royal blue mood without competing with content. Steps 200 (#9CB1EF) and 300 (#7E99EB) suit borders, dividers, hover states and selected rows.
The middle of the scale, 400 to 600, is where royal blue is most recognizable, so use it for brand moments, illustrations and primary buttons. White text reaches the 4.5:1 body-text contrast minimum from step 500 upward, so use step 500 or darker when a button label needs to be white. Near-black text stays readable on steps 50 to 400.
The darkest steps, 800 (#253D85) through 950 (#122048), make headings, body text and dark-mode surfaces that stay clearly related to royal blue. Using step 900 or 950 for text instead of pure black is one of the simplest ways to make an interface feel designed rather than default.
Colors that go with royal blue
How the royal blue color combinations work
Complementary. Directly across the color wheel from royal blue is #E1B941, which sits closest to goldenrod among common named colors. Complementary pairs create the strongest contrast of hue, so use the second color sparingly, for a single call to action or highlight, rather than in equal amounts.
Analogous. #41B9E1 and #6941E1 sit 30 degrees either side of royal blue. Analogous palettes feel calm and cohesive because the colors share undertones; they are ideal for illustrations, gradients and backgrounds where you want harmony more than contrast.
Triadic and split complementary. The triadic set (#E14169 and #69E141) is evenly spaced around the wheel and feels playful; the second color is closest to brick red. The split complementary set (#E16941 and #B9E141) keeps much of the complementary contrast but is easier to balance, which makes it a good choice for data visualization and multi-category tags.
Monochromatic. The monochromatic set runs from #C5D1F6 to #142F7F. A single-hue palette is the safest way to build a calm, premium interface: rely on lightness for hierarchy, then add one neutral and one accent if you need emphasis.
Royal Blue compared with similar colors
steel blue (#4682B4) is darker (49% vs 57% lightness) and more muted, and leans back the wheel toward blue. Choose steel blue if you need more weight and contrast; choose royal blue if you want its specific balance of brightness and color.
denim blue (#1560BD) is darker (41% vs 57% lightness) and more saturated, and leans back the wheel toward blue. Choose denim blue if you need more weight and contrast; choose royal blue if you want its specific balance of brightness and color.
cerulean (#007BA7) is darker (33% vs 57% lightness) and more saturated, and leans back the wheel toward cyan. Choose cerulean if you need more weight and contrast; choose royal blue if you want its specific balance of brightness and color.
Royal Blue in a real interface
Swatches only tell half the story. Here royal blue carries the primary action, with tints from its own scale for the surface and panels.
Weekly summary
Revenue grew 12% this week. Three invoices are waiting for approval.
Using royal blue in UI: buttons, text, backgrounds and dark mode
- Buttons. Royal Blue carries white labels at 4.85:1, which passes AA for normal text.
- Text. Royal Blue works as text on white backgrounds.
- Backgrounds. Use steps 50 and 100 for large areas and keep the base color for smaller surfaces. Big blocks of a vivid mid-tone color draw attention, so give them a reason, like a hero section or pricing highlight.
- Dark mode. Steps 900 and 950 make a dark surface tinted with royal blue. On dark backgrounds the base color often needs a lighter step (300 or 400) to keep enough contrast for icons and borders, as required by WCAG non-text contrast.
- States. Shift one step darker for hover and two steps darker for pressed. Keep focus rings in a contrasting color so keyboard users can always see them.
Contrast and accessibility
AA needs 4.5:1 for body text and 3:1 for large text. AAA needs 7:1.
Color contrast is measured as a ratio from 1:1 (no contrast) to 21:1 (black on white). Royal Blue scores 4.85:1 against white (AA) and 4.33:1 against black (AA large). The WCAG 2.1 contrast guideline asks for at least 4.5:1 for normal text and 3:1 for large text, which is why the shade guide above recommends specific steps for text and labels.
Contrast is only half of accessibility. Around 1 in 12 men and 1 in 200 women have some form of color vision deficiency, so never use royal blue alone to signal meaning such as success, error or selection. Pair it with an icon, a label or a change in weight.
What royal blue means
Blue is the most trusted color in digital products. It signals stability, competence and calm, which is why banks, SaaS tools and health platforms default to it.
Royal blue is associated with the British monarchy; tradition holds that the shade was created for a robe for Queen Charlotte in the 18th century. The CSS royalblue is lighter and brighter than the traditional deep royal blue.
Because so many products already use blue, the shade matters more than the hue. Pair it with an unexpected neutral or accent so the interface does not look like every other dashboard.
Where royal blue works best
- SaaS primary buttons
- Education
- Sports
- Healthcare
How to style royal blue
Royal blue pairs with white, gold, coral and navy. It supports white text in buttons. Use it as a friendly, confident primary color, with a darker navy for text.
Build a UI with royal blue
Inspo AI generates a full React + Tailwind screen using #4169E1 as the brand color, grounded in real shipped designs.
Sources and further reading
- Wikipedia: Royal Blue · History and definition of royal blue.
- WCAG 2.1: Contrast (Minimum) · The W3C rule behind the 4.5:1 and 3:1 thresholds used on this page.
- WCAG 2.1: Use of Color · Why color should never be the only way information is shown.
- MDN: CSS color values · Reference for hex, rgb() and hsl() syntax.
- Tailwind CSS: Customizing colors · How to add a custom color scale to your theme.
Similar colors
Questions people ask
What is the hex code for royal blue?
The hex code for royal blue used on this page is #4169E1. In RGB that is rgb(65, 105, 225), and in HSL it is hsl(225, 73%, 57%).
What colors go well with royal blue?
Royal Blue pairs well with #1E3A8A, #EEF2FF, #FBBF24 (the Regal palette above). Its complementary color is #E1B941, and analogous colors are #41B9E1 and #6941E1.
Is royal blue a warm or cool color?
Royal Blue is a cool color. Its hue sits at 225 degrees on the color wheel with 73% saturation.
Can I use royal blue for text?
Royal Blue has a contrast ratio of 4.85:1 against white and 4.33:1 against black. Body text needs at least 4.5:1, so it works as text on white backgrounds.
What does royal blue mean?
Blue is the most trusted color in digital products. It signals stability, competence and calm, which is why banks, SaaS tools and health platforms default to it. Royal Blue in particular is used for saas primary buttons and education.
How do I use royal blue in Tailwind CSS?
Use an arbitrary value like bg-[#4169E1] for a one-off, or add the 50-950 scale from this page to theme.extend.colors in tailwind.config.js and use classes like bg-royal-blue-500 and text-royal-blue-900.

↘ Building Inspo AI | AI-Powered Design Research & Builder Platform | Design Engineer.