PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Dark — colorset.net */
:root {
--color-1: #002D62;
--color-2: #003F87;
--color-3: #004D99;
--color-4: #0066CC;
--color-5: #1E90FF;
--color-bg: #F1F7FF;
--color-surface: #E4EFFB;
--color-border: #CAD6E5;
--color-text: #0A2E5B;
--color-muted: #5C6C82;
--color-primary: #0075D7;
--color-on-primary: #FFFFFF;
--color-accent: #003F87;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #05101E;
--color-surface: #0E1A29;
--color-border: #202F42;
--color-text: #90A8C4;
--color-muted: #73859B;
--color-primary: #1E90FF;
--color-on-primary: #05101E;
--color-accent: #3D68A3;
--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 #1E90FF | adjusted for contrast · from #002D62 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #002D62 | adjusted for contrast · from #1E90FF |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #0066CC | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0066CC |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.53:1 | AAA pass 4.5:1 | |
| Text on surface | 11.60:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 10.19:1 | AAA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 9.46:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.81:1 | AAA pass 4.5:1 | |
| Text on surface | 7.16:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 5.90:1 | AA pass 4.5:1 | |
| Label on accent | 5.66:1 | AA pass 4.5:1 | |
| Primary on background | 5.90:1 | AA 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 | #002D62 (Text 1) | #003F87 (Text 2) | #004D99 (Text 3) | #0066CC (Text 4) | #1E90FF (Text 5) |
|---|---|---|---|---|---|
| #002D62 | Same color | 1.33— | 1.62— | 2.43— | 4.18AA Large |
| #003F87 | 1.33— | Same color | 1.22— | 1.83— | 3.15AA Large |
| #004D99 | 1.62— | 1.22— | Same color | 1.50— | 2.57— |
| #0066CC | 2.43— | 1.83— | 1.50— | Same color | 1.72— |
| #1E90FF | 4.18AA Large | 3.15AA Large | 2.57— | 1.72— | Same color |
Shades
Shades and tints (50–950)
