PreviewingGo to this paletteOpen in generator
Code
/* Slate Dusk — colorset.net */
:root {
--color-1: #2B3844;
--color-2: #3F4F5E;
--color-3: #536678;
--color-4: #677D92;
--color-5: #7B94AC;
--color-bg: #F0F8FF;
--color-surface: #E6EFF6;
--color-border: #CCD6E1;
--color-text: #2B3844;
--color-muted: #5D6C79;
--color-primary: #677D92;
--color-on-primary: #000000;
--color-accent: #3F4F5E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0C1014;
--color-surface: #151A1E;
--color-border: #272F36;
--color-text: #90AAC2;
--color-muted: #6E8498;
--color-primary: #677D92;
--color-on-primary: #000000;
--color-accent: #5B6976;
--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 #7B94AC | adjusted for contrast · from #2B3844 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #7B94AC |
| 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 #536678 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.17:1 | AAA pass 4.5:1 | |
| Text on surface | 10.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.93:1 | AA pass 4.5:1 | |
| Label on accent | 8.43:1 | AAA pass 4.5:1 | |
| Primary on background | 3.97:1 | AA Large pass 3:1 | |
| Accent on background | 7.86:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 7.27:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.93:1 | AA pass 4.5:1 | |
| Label on primary | 4.93:1 | AA pass 4.5:1 | |
| Label on accent | 5.63:1 | AA pass 4.5:1 | |
| Primary on background | 4.48:1 | AA Large pass 3:1 | |
| Accent on background | 3.39: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 | #2B3844 (Text 1) | #3F4F5E (Text 2) | #536678 (Text 3) | #677D92 (Text 4) | #7B94AC (Text 5) |
|---|---|---|---|---|---|
| #2B3844 | Same color | 1.42— | 2.02— | 2.81— | 3.81AA Large |
| #3F4F5E | 1.42— | Same color | 1.42— | 1.98— | 2.68— |
| #536678 | 2.02— | 1.42— | Same color | 1.39— | 1.89— |
| #677D92 | 2.81— | 1.98— | 1.39— | Same color | 1.36— |
| #7B94AC | 3.81AA Large | 2.68— | 1.89— | 1.36— | Same color |
Shades
Shades and tints (50–950)
