PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Glaze — colorset.net */
:root {
--color-1: #0047AB;
--color-2: #1E4D8B;
--color-3: #1E90FF;
--color-4: #4169E1;
--color-5: #6495ED;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #2B4E7E;
--color-muted: #5C6B82;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #0047AB;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #06101E;
--color-surface: #0F1A29;
--color-border: #212F42;
--color-text: #95A7C6;
--color-muted: #76849C;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #3867A7;
--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 #1E4D8B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #1E4D8B | adjusted for contrast · from #6495ED |
| Muted text | derived | derived |
| Primary | from palette · color 4 | from palette · color 4 |
| On primary | derived | derived |
| Accent | from palette · color 1 | adjusted for contrast · from #1E4D8B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.21:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.03:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 8.44:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 7.84:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.83:1 | AAA pass 4.5:1 | |
| Text on surface | 7.18:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.73:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 3.33: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 | #0047AB (Text 1) | #1E4D8B (Text 2) | #1E90FF (Text 3) | #4169E1 (Text 4) | #6495ED (Text 5) |
|---|---|---|---|---|---|
| #0047AB | Same color | 1.00— | 2.61— | 1.74— | 2.84— |
| #1E4D8B | 1.00— | Same color | 2.61— | 1.74— | 2.84— |
| #1E90FF | 2.61— | 2.61— | Same color | 1.50— | 1.09— |
| #4169E1 | 1.74— | 1.74— | 1.50— | Same color | 1.63— |
| #6495ED | 2.84— | 2.84— | 1.09— | 1.63— | Same color |
Shades
Shades and tints (50–950)
