PreviewingGo to this paletteOpen in generator
Code
/* Electric Cobalt — colorset.net */
:root {
--color-1: #000051;
--color-2: #000080;
--color-3: #0000FF;
--color-4: #4169E1;
--color-5: #6495ED;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #020F3D;
--color-muted: #5E6A82;
--color-primary: #0000FF;
--color-on-primary: #FFFFFF;
--color-accent: #4473C8;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #95A7C6;
--color-muted: #76849C;
--color-primary: #1653FF;
--color-on-primary: #FFFFFF;
--color-accent: #3F63B5;
--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 #6495ED | adjusted for contrast · from #000051 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #000051 | adjusted for contrast · from #6495ED |
| Muted text | derived | derived |
| Primary | from palette · color 3 | adjusted for contrast · from #4169E1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4169E1 | adjusted for contrast · from #4169E1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.15:1 | AAA pass 4.5:1 | |
| Text on surface | 15.80:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 8.59:1 | AAA pass 4.5:1 | |
| Label on accent | 4.63:1 | AA pass 4.5:1 | |
| Primary on background | 7.99:1 | AAA pass 3:1 | |
| Accent on background | 4.31:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.85:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.05:1 | AA pass 4.5:1 | |
| Label on primary | 5.65:1 | AA pass 4.5:1 | |
| Label on accent | 5.73:1 | AA pass 4.5:1 | |
| Primary on background | 3.38:1 | AA Large pass 3:1 | |
| Accent on background | 3.34: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 | #000051 (Text 1) | #000080 (Text 2) | #0000FF (Text 3) | #4169E1 (Text 4) | #6495ED (Text 5) |
|---|---|---|---|---|---|
| #000051 | Same color | 1.17— | 2.18— | 3.87AA Large | 6.31AA |
| #000080 | 1.17— | Same color | 1.86— | 3.30AA Large | 5.39AA |
| #0000FF | 2.18— | 1.86— | Same color | 1.77— | 2.89— |
| #4169E1 | 3.87AA Large | 3.30AA Large | 1.77— | Same color | 1.63— |
| #6495ED | 6.31AA | 5.39AA | 2.89— | 1.63— | Same color |
Shades
Shades and tints (50–950)
