PreviewingGo to this paletteOpen in generator
Code
/* Rainy Slate — colorset.net */
:root {
--color-1: #2F4F4F;
--color-2: #708090;
--color-3: #778899;
--color-4: #B0C4DE;
--color-5: #E6F3FF;
--color-bg: #E6F3FF;
--color-surface: #F3F9FF;
--color-border: #CBDBE9;
--color-text: #2F4F4F;
--color-muted: #517272;
--color-primary: #708090;
--color-on-primary: #000000;
--color-accent: #434F5C;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #071111;
--color-surface: #111C1C;
--color-border: #223131;
--color-text: #E6F3FF;
--color-muted: #7E8A95;
--color-primary: #708090;
--color-on-primary: #071111;
--color-accent: #B0C4DE;
--color-on-accent: #071111;
}
}
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 | from palette · color 5 | adjusted for contrast · from #2F4F4F |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | from palette · color 2 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #2F4F4F | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.92:1 | AAA pass 4.5:1 | |
| Text on surface | 8.42:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.66:1 | AA pass 4.5:1 | |
| Label on primary | 5.18:1 | AA pass 4.5:1 | |
| Label on accent | 8.36:1 | AAA pass 4.5:1 | |
| Primary on background | 3.60:1 | AA Large pass 3:1 | |
| Accent on background | 7.42:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.98:1 | AAA pass 4.5:1 | |
| Text on surface | 15.44:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.43:1 | AA pass 4.5:1 | |
| Label on primary | 4.72:1 | AA pass 4.5:1 | |
| Label on accent | 10.75:1 | AAA pass 4.5:1 | |
| Primary on background | 4.72:1 | AA pass 3:1 | |
| Accent on background | 10.75:1 | AAA 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 | #2F4F4F (Text 1) | #708090 (Text 2) | #778899 (Text 3) | #B0C4DE (Text 4) | #E6F3FF (Text 5) |
|---|---|---|---|---|---|
| #2F4F4F | Same color | 2.20— | 2.45— | 5.02AA | 7.92AAA |
| #708090 | 2.20— | Same color | 1.11— | 2.28— | 3.60AA Large |
| #778899 | 2.45— | 1.11— | Same color | 2.05— | 3.23AA Large |
| #B0C4DE | 5.02AA | 2.28— | 2.05— | Same color | 1.58— |
| #E6F3FF | 7.92AAA | 3.60AA Large | 3.23AA Large | 1.58— | Same color |
Shades
Shades and tints (50–950)
