PreviewingGo to this paletteOpen in generator
Code
/* Galaxy Blue — colorset.net */
:root {
--color-1: #1A237E;
--color-2: #303F9F;
--color-3: #3F51B5;
--color-4: #5C6BC0;
--color-5: #9FA8DA;
--color-bg: #F4F6FF;
--color-surface: #EAEDFB;
--color-border: #D0D4E6;
--color-text: #222E60;
--color-muted: #616A82;
--color-primary: #3F51B5;
--color-on-primary: #FFFFFF;
--color-accent: #7E86B6;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #13182A;
--color-border: #262D42;
--color-text: #A3A9CC;
--color-muted: #7D829C;
--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 #9FA8DA | adjusted for contrast · from #1A237E |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1A237E | adjusted for contrast · from #9FA8DA |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #3F51B5 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5C6BC0 | adjusted for contrast · from #9FA8DA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.96:1 | AAA pass 4.5:1 | |
| Text on surface | 11.06: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 | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 6.37:1 | AA pass 3:1 | |
| Accent on background | 3.26:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 8.31:1 | AAA pass 4.5:1 | |
| Text on surface | 7.64:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06: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) | #303F9F (Text 2) | #3F51B5 (Text 3) | #5C6BC0 (Text 4) | #9FA8DA (Text 5) |
|---|---|---|---|---|---|
| #1A237E | Same color | 1.47— | 1.93— | 2.72— | 5.73AA |
| #303F9F | 1.47— | Same color | 1.31— | 1.85— | 3.89AA Large |
| #3F51B5 | 1.93— | 1.31— | Same color | 1.41— | 2.97— |
| #5C6BC0 | 2.72— | 1.85— | 1.41— | Same color | 2.10— |
| #9FA8DA | 5.73AA | 3.89AA Large | 2.97— | 2.10— | Same color |
Shades
Shades and tints (50–950)
