PreviewingGo to this paletteOpen in generator
Code
/* Stormy Gray — colorset.net */
:root {
--color-1: #2F3640;
--color-2: #40739E;
--color-3: #718096;
--color-4: #A0AEC0;
--color-5: #E2E8F0;
--color-bg: #F5F7F9;
--color-surface: #ECEEF0;
--color-border: #D1D5DB;
--color-text: #2F3640;
--color-muted: #656D78;
--color-primary: #40739E;
--color-on-primary: #FFFFFF;
--color-accent: #848991;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D1013;
--color-surface: #171A1D;
--color-border: #2A2E34;
--color-text: #E2E8F0;
--color-muted: #7E848B;
--color-primary: #40739E;
--color-on-primary: #FFFFFF;
--color-accent: #A0AEC0;
--color-on-accent: #0D1013;
}
}
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 #E2E8F0 | adjusted for contrast · from #2F3640 |
| 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 #718096 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 11.35:1 | AAA pass 4.5:1 | |
| Text on surface | 10.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.87:1 | AA pass 4.5:1 | |
| Label on primary | 5.04:1 | AA pass 4.5:1 | |
| Label on accent | 5.97:1 | AA pass 4.5:1 | |
| Primary on background | 4.70:1 | AA pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.48:1 | AAA pass 4.5:1 | |
| Text on surface | 14.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.04:1 | AA pass 4.5:1 | |
| Label on accent | 8.46:1 | AAA pass 4.5:1 | |
| Primary on background | 3.78:1 | AA Large pass 3:1 | |
| Accent on background | 8.46: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 | #2F3640 (Text 1) | #40739E (Text 2) | #718096 (Text 3) | #A0AEC0 (Text 4) | #E2E8F0 (Text 5) |
|---|---|---|---|---|---|
| #2F3640 | Same color | 2.42— | 3.04AA Large | 5.40AA | 9.89AAA |
| #40739E | 2.42— | Same color | 1.26— | 2.24— | 4.09AA Large |
| #718096 | 3.04AA Large | 1.26— | Same color | 1.78— | 3.26AA Large |
| #A0AEC0 | 5.40AA | 2.24— | 1.78— | Same color | 1.83— |
| #E2E8F0 | 9.89AAA | 4.09AA Large | 3.26AA Large | 1.83— | Same color |
Shades
Shades and tints (50–950)
