PreviewingGo to this paletteOpen in generator
Code
/* Twilight Denim — colorset.net */
:root {
--color-1: #283A5C;
--color-2: #3A4F73;
--color-3: #4C638A;
--color-4: #5F78A1;
--color-5: #7A8FB8;
--color-bg: #F3F7FF;
--color-surface: #E7EEFB;
--color-border: #CCD5E6;
--color-text: #283A5C;
--color-muted: #5D6A81;
--color-primary: #5F78A1;
--color-on-primary: #000000;
--color-accent: #3A4F73;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #090F1B;
--color-surface: #131925;
--color-border: #252E3D;
--color-text: #94A5C4;
--color-muted: #76839B;
--color-primary: #5F78A1;
--color-on-primary: #000000;
--color-accent: #52668B;
--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 #7A8FB8 | adjusted for contrast · from #283A5C |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #7A8FB8 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4C638A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 10.57:1 | AAA pass 4.5:1 | |
| Text on surface | 9.74:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.09:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 8.25:1 | AAA pass 4.5:1 | |
| Primary on background | 4.17:1 | AA Large pass 3:1 | |
| Accent on background | 7.68:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.70:1 | AAA pass 4.5:1 | |
| Text on surface | 7.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.01:1 | AA pass 4.5:1 | |
| Label on primary | 4.69:1 | AA pass 4.5:1 | |
| Label on accent | 5.78:1 | AA pass 4.5:1 | |
| Primary on background | 4.28:1 | AA Large pass 3:1 | |
| Accent on background | 3.31: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 | #283A5C (Text 1) | #3A4F73 (Text 2) | #4C638A (Text 3) | #5F78A1 (Text 4) | #7A8FB8 (Text 5) |
|---|---|---|---|---|---|
| #283A5C | Same color | 1.38— | 1.87— | 2.53— | 3.49AA Large |
| #3A4F73 | 1.38— | Same color | 1.36— | 1.84— | 2.53— |
| #4C638A | 1.87— | 1.36— | Same color | 1.36— | 1.86— |
| #5F78A1 | 2.53— | 1.84— | 1.36— | Same color | 1.38— |
| #7A8FB8 | 3.49AA Large | 2.53— | 1.86— | 1.38— | Same color |
Shades
Shades and tints (50–950)
