Royal Blue Color Palette
Royal Blue Color Palette built around #4169E1, a dark cool blue anchor (WCAG contrast 4.33:1 against black). The set combines a light tint + a deep shade + a softened complement + a neutral ground so any palette position has a text-safe pairing.
Semantic roles
Assigned deterministically: lightest = background, darkest = text, most saturated = primary.
| background | #C2C4FF | |
| surface | #BDA765 | |
| text | #0E3686 | |
| text-muted | #4169E1 | |
| primary | #4169E1 | |
| secondary | #BDA765 | |
| accent | #5E77E4 |
CSS variables
:root {
--background: #c2c4ff;
--surface: #bda765;
--text: #0e3686;
--text-muted: #4169e1;
--primary: #4169e1;
--secondary: #bda765;
--accent: #5e77e4;
}Accessibility matrix
Text color (rows) on background (columns). Green = WCAG AA pass for normal text (≥4.5:1).
| Text \ BG | #4169E1 | #C2C4FF | #0E3686 | #BDA765 | #5E77E4 |
|---|---|---|---|---|---|
| #4169E1 | 1.0 | 2.9 | 2.3 | 2.0 | 1.2 |
| #C2C4FF | 2.9 | 1.0 | 6.7 | 1.4 | 2.4 |
| #0E3686 | 2.3 | 6.7 | 1.0 | 4.7 | 2.8 |
| #BDA765 | 2.0 | 1.4 | 4.7 | 1.0 | 1.7 |
| #5E77E4 | 1.2 | 2.4 | 2.8 | 1.7 | 1.0 |
Under deuteranopia
Machado et al. (2009) simulation, severity 1.0 — approximation, not a medical tool.
Colors in this palette
Similar palettes
FAQ
How do I use the royal blue color palette in CSS?
Copy the CSS variables below into :root and use var(--primary), var(--background) etc. Full palette: #4169E1, #C2C4FF, #0E3686, #BDA765, #5E77E4.
Do these colors pass accessibility checks?
See the WCAG matrix on this page: every text-on-background pairing with ratio ≥ 4.5 passes AA for normal text; ≥ 3 passes AA for large text and UI components.