PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Index — colorset.net */
:root {
--color-1: #0D1530;
--color-2: #4C7DFF;
--color-3: #FF7A59;
--color-4: #24305A;
--color-5: #E8EDFB;
--color-bg: #E8EDFB;
--color-surface: #F1F4FD;
--color-border: #CED4E6;
--color-text: #0D1530;
--color-muted: #5E6780;
--color-primary: #3E6DED;
--color-on-primary: #FFFFFF;
--color-accent: #CA4A29;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D1530;
--color-surface: #17203C;
--color-border: #2E364C;
--color-text: #E8EDFB;
--color-muted: #868A97;
--color-primary: #3E6DED;
--color-on-primary: #FFFFFF;
--color-accent: #FF7A59;
--color-on-accent: #0D1530;
}
}
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 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4C7DFF | adjusted for contrast · from #4C7DFF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #FF7A59 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.37:1 | AAA pass 4.5:1 | |
| Text on surface | 16.36:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.81:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 4.64:1 | AA pass 4.5:1 | |
| Primary on background | 3.89:1 | AA Large pass 3:1 | |
| Accent on background | 3.97:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.37:1 | AAA pass 4.5:1 | |
| Text on surface | 13.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.22:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 7.01:1 | AAA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 7.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 | #0D1530 (Text 1) | #4C7DFF (Text 2) | #FF7A59 (Text 3) | #24305A (Text 4) | #E8EDFB (Text 5) |
|---|---|---|---|---|---|
| #0D1530 | Same color | 4.87AA | 7.01AAA | 1.41— | 15.37AAA |
| #4C7DFF | 4.87AA | Same color | 1.44— | 3.45AA Large | 3.16AA Large |
| #FF7A59 | 7.01AAA | 1.44— | Same color | 4.97AA | 2.19— |
| #24305A | 1.41— | 3.45AA Large | 4.97AA | Same color | 10.90AAA |
| #E8EDFB | 15.37AAA | 3.16AA Large | 2.19— | 10.90AAA | Same color |
Shades
Shades and tints (50–950)
