PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Gray — colorset.net */
:root {
--color-1: #4F5D75;
--color-2: #61758D;
--color-3: #8896A6;
--color-4: #B0BEC5;
--color-5: #CFD8DC;
--color-bg: #F4F7F8;
--color-surface: #EBEEEF;
--color-border: #CFD6D9;
--color-text: #424F66;
--color-muted: #5E6B82;
--color-primary: #61758D;
--color-on-primary: #FFFFFF;
--color-accent: #818A8D;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0B1017;
--color-surface: #151A21;
--color-border: #282E39;
--color-text: #CFD8DC;
--color-muted: #7C8588;
--color-primary: #61758D;
--color-on-primary: #FFFFFF;
--color-accent: #B0BEC5;
--color-on-accent: #0B1017;
}
}
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 #CFD8DC | adjusted for contrast · from #4F5D75 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4F5D75 | 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 #8896A6 | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.67:1 | AAA pass 4.5:1 | |
| Text on surface | 7.08:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.73:1 | AA pass 4.5:1 | |
| Label on accent | 5.95:1 | AA pass 4.5:1 | |
| Primary on background | 4.40:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.18:1 | AAA pass 4.5:1 | |
| Text on surface | 12.07:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.73:1 | AA pass 4.5:1 | |
| Label on accent | 10.01:1 | AAA pass 4.5:1 | |
| Primary on background | 4.03:1 | AA Large pass 3:1 | |
| Accent on background | 10.01: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 | #4F5D75 (Text 1) | #61758D (Text 2) | #8896A6 (Text 3) | #B0BEC5 (Text 4) | #CFD8DC (Text 5) |
|---|---|---|---|---|---|
| #4F5D75 | Same color | 1.41— | 2.21— | 3.49AA Large | 4.60AA |
| #61758D | 1.41— | Same color | 1.57— | 2.48— | 3.27AA Large |
| #8896A6 | 2.21— | 1.57— | Same color | 1.58— | 2.08— |
| #B0BEC5 | 3.49AA Large | 2.48— | 1.58— | Same color | 1.32— |
| #CFD8DC | 4.60AA | 3.27AA Large | 2.08— | 1.32— | Same color |
Shades
Shades and tints (50–950)
