PreviewingGo to this paletteOpen in generator
Code
/* Cobalt Cornflower — colorset.net */
:root {
--color-1: #003F87;
--color-2: #0047AB;
--color-3: #1E90FF;
--color-4: #4169E1;
--color-5: #6495ED;
--color-bg: #F2F7FF;
--color-surface: #E6EEFB;
--color-border: #CCD5E6;
--color-text: #204271;
--color-muted: #5D6D83;
--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: #212E42;
--color-text: #95A7C6;
--color-muted: #76849C;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #2D65B1;
--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 #003F87 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #003F87 | 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 2 | adjusted for contrast · from #4169E1 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.39:1 | AAA pass 4.5:1 | |
| Text on surface | 8.65:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90: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.82:1 | AA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 3.28: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 | #003F87 (Text 1) | #0047AB (Text 2) | #1E90FF (Text 3) | #4169E1 (Text 4) | #6495ED (Text 5) |
|---|---|---|---|---|---|
| #003F87 | Same color | 1.21— | 3.15AA Large | 2.10— | 3.43AA Large |
| #0047AB | 1.21— | Same color | 2.61— | 1.74— | 2.84— |
| #1E90FF | 3.15AA Large | 2.61— | Same color | 1.50— | 1.09— |
| #4169E1 | 2.10— | 1.74— | 1.50— | Same color | 1.63— |
| #6495ED | 3.43AA Large | 2.84— | 1.09— | 1.63— | Same color |
Shades
Shades and tints (50–950)
