PreviewingGo to this paletteOpen in generator
Code
/* Royal Blue — colorset.net */
:root {
--color-1: #1E3A8A;
--color-2: #3B82F6;
--color-3: #60A5FA;
--color-4: #93C5FD;
--color-5: #DBEAFE;
--color-bg: #DBEAFE;
--color-surface: #E8F1FD;
--color-border: #C1D2E8;
--color-text: #2B3F72;
--color-muted: #5E6981;
--color-primary: #2B72E5;
--color-on-primary: #FFFFFF;
--color-accent: #778597;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #12192A;
--color-border: #242D42;
--color-text: #DBEAFE;
--color-muted: #778597;
--color-primary: #2B72E5;
--color-on-primary: #FFFFFF;
--color-accent: #4263B7;
--color-on-accent: #FFFFFF;
}
}
Color values
| Color | HEX | RGB | HSL | OKLCH |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 |
Roles & contrast
Original colors are kept; roles are adjusted only when needed for contrast.
| Role | Light mode | Dark mode |
|---|---|---|
| Background | from palette · color 5 | adjusted for contrast · from #1E3A8A |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1E3A8A | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #3B82F6 | adjusted for contrast · from #3B82F6 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #60A5FA | adjusted for contrast · from #3B82F6 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.37:1 | AAA pass 4.5:1 | |
| Text on surface | 8.96:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.51:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.59:1 | AA pass 4.5:1 | |
| Primary on background | 3.71:1 | AA Large pass 3:1 | |
| Accent on background | 3.08:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.67:1 | AAA pass 4.5:1 | |
| Text on surface | 14.37:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.52:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 4.23:1 | AA Large pass 3:1 | |
| Accent on background | 3.37:1 | AA Large pass 3:1 |
Every color on every color
Rows are backgrounds and columns are text colors, using the actual palette colors. Ratios: AAA 7:1, AA 4.5:1, AA large text 3:1.
| Background / Text | #1E3A8A (Text 1) | #3B82F6 (Text 2) | #60A5FA (Text 3) | #93C5FD (Text 4) | #DBEAFE (Text 5) |
|---|---|---|---|---|---|
| #1E3A8A | Same color | 2.82— | 4.07AA Large | 5.74AA | 8.49AAA |
| #3B82F6 | 2.82— | Same color | 1.45— | 2.04— | 3.01AA Large |
| #60A5FA | 4.07AA Large | 1.45— | Same color | 1.41— | 2.08— |
| #93C5FD | 5.74AA | 2.04— | 1.41— | Same color | 1.48— |
| #DBEAFE | 8.49AAA | 3.01AA Large | 2.08— | 1.48— | Same color |
Shades
Shades and tints (50–950)
