PreviewingGo to this paletteOpen in generator
Code
/* Twilight Blue — colorset.net */
:root {
--color-1: #191970;
--color-2: #483D8B;
--color-3: #6A5ACD;
--color-4: #4169E1;
--color-5: #87CEEB;
--color-bg: #ECF9FF;
--color-surface: #E0F1F8;
--color-border: #C4D9E2;
--color-text: #1D2557;
--color-muted: #636A83;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #4B92AD;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272C42;
--color-text: #A1CADB;
--color-muted: #688794;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #4E5FBA;
--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 | adjusted for contrast · from #87CEEB | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #87CEEB |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4169E1 | adjusted for contrast · from #6A5ACD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.45:1 | AAA pass 4.5:1 | |
| Text on surface | 12.45:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 6.01:1 | AA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 3.25:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.94:1 | AAA pass 4.5:1 | |
| Text on surface | 10.04:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #191970 (Text 1) | #483D8B (Text 2) | #6A5ACD (Text 3) | #4169E1 (Text 4) | #87CEEB (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.64— | 2.80— | 3.06AA Large | 8.53AAA |
| #483D8B | 1.64— | Same color | 1.71— | 1.87— | 5.21AA |
| #6A5ACD | 2.80— | 1.71— | Same color | 1.09— | 3.05AA Large |
| #4169E1 | 3.06AA Large | 1.87— | 1.09— | Same color | 2.78— |
| #87CEEB | 8.53AAA | 5.21AA | 3.05AA Large | 2.78— | Same color |
Shades
Shades and tints (50–950)
