PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Slab — colorset.net */
:root {
--color-1: #DAD8D3;
--color-2: #1F3FFF;
--color-3: #FFD400;
--color-4: #9E9B95;
--color-5: #111111;
--color-bg: #F7F7F5;
--color-surface: #EEEDEC;
--color-border: #D7D5D0;
--color-text: #111111;
--color-muted: #676767;
--color-primary: #1F3FFF;
--color-on-primary: #FFFFFF;
--color-accent: #8B7300;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #111111;
--color-surface: #1B1B1B;
--color-border: #322F30;
--color-text: #DAD8D3;
--color-muted: #878580;
--color-primary: #2852FF;
--color-on-primary: #FFFFFF;
--color-accent: #FFD400;
--color-on-accent: #111111;
}
}
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 #DAD8D3 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | from palette · color 2 | adjusted for contrast · from #1F3FFF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #9E9B95 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.60:1 | AAA pass 4.5:1 | |
| Text on surface | 16.15:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.27:1 | AA pass 4.5:1 | |
| Label on primary | 6.54:1 | AA pass 4.5:1 | |
| Label on accent | 4.62:1 | AA pass 4.5:1 | |
| Primary on background | 6.09:1 | AA pass 3:1 | |
| Accent on background | 4.30:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.26:1 | AAA pass 4.5:1 | |
| Text on surface | 12.09:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.12:1 | AA pass 4.5:1 | |
| Label on primary | 5.61:1 | AA pass 4.5:1 | |
| Label on accent | 13.19:1 | AAA pass 4.5:1 | |
| Primary on background | 3.36:1 | AA Large pass 3:1 | |
| Accent on background | 13.19: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 | #DAD8D3 (Text 1) | #1F3FFF (Text 2) | #FFD400 (Text 3) | #9E9B95 (Text 4) | #111111 (Text 5) |
|---|---|---|---|---|---|
| #DAD8D3 | Same color | 4.59AA | 1.01— | 1.95— | 13.26AAA |
| #1F3FFF | 4.59AA | Same color | 4.57AA | 2.36— | 2.89— |
| #FFD400 | 1.01— | 4.57AA | Same color | 1.94— | 13.19AAA |
| #9E9B95 | 1.95— | 2.36— | 1.94— | Same color | 6.81AA |
| #111111 | 13.26AAA | 2.89— | 13.19AAA | 6.81AA | Same color |
Shades
Shades and tints (50–950)
