PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Serif — colorset.net */
:root {
--color-1: #F1EDE4;
--color-2: #1D3FD1;
--color-3: #F25C3B;
--color-4: #C9C3B6;
--color-5: #16171D;
--color-bg: #F1EDE4;
--color-surface: #F7F4EF;
--color-border: #DAD4C8;
--color-text: #16171D;
--color-muted: #66686F;
--color-primary: #1D3FD1;
--color-on-primary: #FFFFFF;
--color-accent: #D5411E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #16171D;
--color-surface: #202128;
--color-border: #353640;
--color-text: #F1EDE4;
--color-muted: #8E8A82;
--color-primary: #325EF1;
--color-on-primary: #FFFFFF;
--color-accent: #F25C3B;
--color-on-accent: #16171D;
}
}
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 1 | 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 #1D3FD1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #F25C3B | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.30:1 | AAA pass 4.5:1 | |
| Text on surface | 16.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.76:1 | AA pass 4.5:1 | |
| Label on primary | 7.82:1 | AAA pass 4.5:1 | |
| Label on accent | 4.56:1 | AA pass 4.5:1 | |
| Primary on background | 6.70:1 | AA pass 3:1 | |
| Accent on background | 3.90:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.30:1 | AAA pass 4.5:1 | |
| Text on surface | 13.72:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.20:1 | AA pass 4.5:1 | |
| Label on primary | 5.24:1 | AA pass 4.5:1 | |
| Label on accent | 5.42:1 | AA pass 4.5:1 | |
| Primary on background | 3.41:1 | AA Large pass 3:1 | |
| Accent on background | 5.42:1 | AA 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 | #F1EDE4 (Text 1) | #1D3FD1 (Text 2) | #F25C3B (Text 3) | #C9C3B6 (Text 4) | #16171D (Text 5) |
|---|---|---|---|---|---|
| #F1EDE4 | Same color | 6.70AA | 2.82— | 1.50— | 15.30AAA |
| #1D3FD1 | 6.70AA | Same color | 2.37— | 4.46AA Large | 2.29— |
| #F25C3B | 2.82— | 2.37— | Same color | 1.88— | 5.42AA |
| #C9C3B6 | 1.50— | 4.46AA Large | 1.88— | Same color | 10.19AAA |
| #16171D | 15.30AAA | 2.29— | 5.42AA | 10.19AAA | Same color |
Shades
Shades and tints (50–950)
