PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Blue — colorset.net */
:root {
--color-1: #0080FF;
--color-2: #3399FF;
--color-3: #66B2FF;
--color-4: #99CCFF;
--color-5: #CCE5FF;
--color-bg: #F1F8FF;
--color-surface: #E7EEF6;
--color-border: #CCD6E1;
--color-text: #2B4F7F;
--color-muted: #5C6C82;
--color-primary: #0072E4;
--color-on-primary: #FFFFFF;
--color-accent: #7289A1;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #05101E;
--color-surface: #0E1A29;
--color-border: #202F42;
--color-text: #CCE5FF;
--color-muted: #71869B;
--color-primary: #0072E4;
--color-on-primary: #FFFFFF;
--color-accent: #99CCFF;
--color-on-accent: #05101E;
}
}
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 #CCE5FF | adjusted for contrast · from #0080FF |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0080FF | from palette · color 5 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #0080FF | adjusted for contrast · from #0080FF |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #3399FF | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.76:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.81:1 | AA pass 4.5:1 | |
| Primary on background | 4.33:1 | AA Large pass 3:1 | |
| Accent on background | 3.38:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.75:1 | AAA pass 4.5:1 | |
| Text on surface | 13.53:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 11.31:1 | AAA pass 4.5:1 | |
| Primary on background | 4.12:1 | AA Large pass 3:1 | |
| Accent on background | 11.31: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 | #0080FF (Text 1) | #3399FF (Text 2) | #66B2FF (Text 3) | #99CCFF (Text 4) | #CCE5FF (Text 5) |
|---|---|---|---|---|---|
| #0080FF | Same color | 1.29— | 1.70— | 2.25— | 2.93— |
| #3399FF | 1.29— | Same color | 1.31— | 1.74— | 2.27— |
| #66B2FF | 1.70— | 1.31— | Same color | 1.33— | 1.73— |
| #99CCFF | 2.25— | 1.74— | 1.33— | Same color | 1.30— |
| #CCE5FF | 2.93— | 2.27— | 1.73— | 1.30— | Same color |
Shades
Shades and tints (50–950)
