PreviewingGo to this paletteOpen in generator
Code
/* Cornflower Haze — colorset.net */
:root {
--color-1: #6495ED;
--color-2: #7AA5F0;
--color-3: #90B5F3;
--color-4: #A6C5F6;
--color-5: #BCD5F9;
--color-bg: #F2F7FF;
--color-surface: #E6EEF9;
--color-border: #CCD6E4;
--color-text: #324D7F;
--color-muted: #5E6B82;
--color-primary: #4473C8;
--color-on-primary: #FFFFFF;
--color-accent: #738AAB;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #070F1F;
--color-surface: #10192A;
--color-border: #222E42;
--color-text: #BFD5F4;
--color-muted: #73839A;
--color-primary: #6495ED;
--color-on-primary: #070F1F;
--color-accent: #A6C5F6;
--color-on-accent: #070F1F;
}
}
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 #BCD5F9 | adjusted for contrast · from #6495ED |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #6495ED | adjusted for contrast · from #BCD5F9 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #6495ED | from palette · color 1 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #6495ED | from palette · color 4 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.80:1 | AAA pass 4.5:1 | |
| Text on surface | 7.17:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 4.63:1 | AA pass 4.5:1 | |
| Label on accent | 5.95:1 | AA pass 4.5:1 | |
| Primary on background | 4.31:1 | AA Large pass 3:1 | |
| Accent on background | 3.28:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 12.80:1 | AAA pass 4.5:1 | |
| Text on surface | 11.75:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 6.44:1 | AA pass 4.5:1 | |
| Label on accent | 10.88:1 | AAA pass 4.5:1 | |
| Primary on background | 6.44:1 | AA pass 3:1 | |
| Accent on background | 10.88:1 | AAA 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 | #6495ED (Text 1) | #7AA5F0 (Text 2) | #90B5F3 (Text 3) | #A6C5F6 (Text 4) | #BCD5F9 (Text 5) |
|---|---|---|---|---|---|
| #6495ED | Same color | 1.20— | 1.43— | 1.69— | 1.99— |
| #7AA5F0 | 1.20— | Same color | 1.19— | 1.41— | 1.66— |
| #90B5F3 | 1.43— | 1.19— | Same color | 1.18— | 1.39— |
| #A6C5F6 | 1.69— | 1.41— | 1.18— | Same color | 1.17— |
| #BCD5F9 | 1.99— | 1.66— | 1.39— | 1.17— | Same color |
Shades
Shades and tints (50–950)
