PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Night — colorset.net */
:root {
--color-1: #002366;
--color-2: #003980;
--color-3: #004F99;
--color-4: #0065B3;
--color-5: #007BCC;
--color-bg: #F1F8FF;
--color-surface: #E3EFFB;
--color-border: #C9D7E5;
--color-text: #0E2756;
--color-muted: #5D6B82;
--color-primary: #0078C7;
--color-on-primary: #FFFFFF;
--color-accent: #003980;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #070F1F;
--color-surface: #10192A;
--color-border: #222E42;
--color-text: #8CA8C3;
--color-muted: #70859A;
--color-primary: #0078C7;
--color-on-primary: #FFFFFF;
--color-accent: #3D65AE;
--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 #007BCC | adjusted for contrast · from #002366 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #002366 | adjusted for contrast · from #007BCC |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #007BCC | adjusted for contrast · from #007BCC |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #0065B3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 13.59:1 | AAA pass 4.5:1 | |
| Text on surface | 12.48:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 11.07:1 | AAA pass 4.5:1 | |
| Primary on background | 4.35:1 | AA Large pass 3:1 | |
| Accent on background | 10.34:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.72:1 | AA pass 4.5:1 | |
| Primary on background | 4.11:1 | AA Large pass 3:1 | |
| Accent on background | 3.35: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 | #002366 (Text 1) | #003980 (Text 2) | #004F99 (Text 3) | #0065B3 (Text 4) | #007BCC (Text 5) |
|---|---|---|---|---|---|
| #002366 | Same color | 1.32— | 1.80— | 2.45— | 3.29AA Large |
| #003980 | 1.32— | Same color | 1.36— | 1.85— | 2.48— |
| #004F99 | 1.80— | 1.36— | Same color | 1.36— | 1.82— |
| #0065B3 | 2.45— | 1.85— | 1.36— | Same color | 1.34— |
| #007BCC | 3.29AA Large | 2.48— | 1.82— | 1.34— | Same color |
Shades
Shades and tints (50–950)
