PreviewingGo to this paletteOpen in generator
Code
/* Blue Royal — colorset.net */
:root {
--color-1: #1A237E;
--color-2: #283593;
--color-3: #303F9F;
--color-4: #3F51B5;
--color-5: #5C6BC0;
--color-bg: #F4F6FF;
--color-surface: #E9EDFB;
--color-border: #CFD4E6;
--color-text: #222E60;
--color-muted: #616A82;
--color-primary: #3F51B5;
--color-on-primary: #FFFFFF;
--color-accent: #1A237E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #13182A;
--color-border: #262D42;
--color-text: #9CA5C7;
--color-muted: #79809A;
--color-primary: #495DC2;
--color-on-primary: #FFFFFF;
--color-accent: #7D94EE;
--color-on-accent: #0A0E1F;
}
}
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 | adjusted for contrast · from #5C6BC0 | adjusted for contrast · from #1A237E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1A237E | adjusted for contrast · from #5C6BC0 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #3F51B5 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #5C6BC0 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.96:1 | AAA pass 4.5:1 | |
| Text on surface | 11.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 6.87:1 | AA pass 4.5:1 | |
| Label on accent | 13.24:1 | AAA pass 4.5:1 | |
| Primary on background | 6.37:1 | AA pass 3:1 | |
| Accent on background | 12.28:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.87:1 | AAA pass 4.5:1 | |
| Text on surface | 7.23:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 5.79:1 | AA pass 4.5:1 | |
| Label on accent | 6.70:1 | AA pass 4.5:1 | |
| Primary on background | 3.31:1 | AA Large pass 3:1 | |
| Accent on background | 6.70:1 | AA 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 | #1A237E (Text 1) | #283593 (Text 2) | #303F9F (Text 3) | #3F51B5 (Text 4) | #5C6BC0 (Text 5) |
|---|---|---|---|---|---|
| #1A237E | Same color | 1.27— | 1.47— | 1.93— | 2.72— |
| #283593 | 1.27— | Same color | 1.16— | 1.51— | 2.14— |
| #303F9F | 1.47— | 1.16— | Same color | 1.31— | 1.85— |
| #3F51B5 | 1.93— | 1.51— | 1.31— | Same color | 1.41— |
| #5C6BC0 | 2.72— | 2.14— | 1.85— | 1.41— | Same color |
Shades
Shades and tints (50–950)
