PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Depths — colorset.net */
:root {
--color-1: #000080;
--color-2: #001199;
--color-3: #0022B2;
--color-4: #0033CC;
--color-5: #0044E5;
--color-bg: #F3F7FF;
--color-surface: #E7EEFB;
--color-border: #CCD5E6;
--color-text: #0F2352;
--color-muted: #5F6B83;
--color-primary: #0044E5;
--color-on-primary: #FFFFFF;
--color-accent: #000080;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #94A5C4;
--color-muted: #76839B;
--color-primary: #1256F7;
--color-on-primary: #FFFFFF;
--color-accent: #2F5FD3;
--color-on-accent: #FFFFFF;
}
}
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 #0044E5 | adjusted for contrast · from #000080 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000080 | adjusted for contrast · from #0044E5 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #0044E5 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #0044E5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.15:1 | AAA pass 4.5:1 | |
| Text on surface | 13.03:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 7.10:1 | AAA pass 4.5:1 | |
| Label on accent | 16.01:1 | AAA pass 4.5:1 | |
| Primary on background | 6.61:1 | AA pass 3:1 | |
| Accent on background | 14.91:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.68:1 | AA pass 4.5:1 | |
| Label on accent | 5.68:1 | AA pass 4.5:1 | |
| Primary on background | 3.37:1 | AA Large pass 3:1 | |
| Accent on background | 3.37:1 | AA Large 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 | #000080 (Text 1) | #001199 (Text 2) | #0022B2 (Text 3) | #0033CC (Text 4) | #0044E5 (Text 5) |
|---|---|---|---|---|---|
| #000080 | Same color | 1.17— | 1.43— | 1.79— | 2.26— |
| #001199 | 1.17— | Same color | 1.22— | 1.52— | 1.92— |
| #0022B2 | 1.43— | 1.22— | Same color | 1.25— | 1.58— |
| #0033CC | 1.79— | 1.52— | 1.25— | Same color | 1.26— |
| #0044E5 | 2.26— | 1.92— | 1.58— | 1.26— | Same color |
Shades
Shades and tints (50–950)
