PreviewingGo to this paletteOpen in generator
Code
/* Lightning Blue — colorset.net */
:root {
--color-1: #191970;
--color-2: #000080;
--color-3: #4169E1;
--color-4: #FFFF00;
--color-5: #FFD700;
--color-bg: #F7F8E9;
--color-surface: #EEEFE0;
--color-border: #D5D7C4;
--color-text: #0F2352;
--color-muted: #5F6B83;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #8C7500;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #242E42;
--color-text: #F6F8D2;
--color-muted: #8B8C71;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #FFD700;
--color-on-accent: #080F1F;
}
}
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 #FFD700 | adjusted for contrast · from #191970 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #191970 | adjusted for contrast · from #FFD700 |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #4169E1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.15:1 | AAA pass 4.5:1 | |
| Text on surface | 13.06:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.99:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 4.51:1 | AA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 4.20:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.55:1 | AAA pass 4.5:1 | |
| Text on surface | 16.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.54:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 13.63:1 | AAA pass 4.5:1 | |
| Primary on background | 3.94:1 | AA Large pass 3:1 | |
| Accent on background | 13.63: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 | #191970 (Text 1) | #000080 (Text 2) | #4169E1 (Text 3) | #FFFF00 (Text 4) | #FFD700 (Text 5) |
|---|---|---|---|---|---|
| #191970 | Same color | 1.08— | 3.06AA Large | 13.83AAA | 10.59AAA |
| #000080 | 1.08— | Same color | 3.30AA Large | 14.91AAA | 11.41AAA |
| #4169E1 | 3.06AA Large | 3.30AA Large | Same color | 4.51AA | 3.46AA Large |
| #FFFF00 | 13.83AAA | 14.91AAA | 4.51AA | Same color | 1.31— |
| #FFD700 | 10.59AAA | 11.41AAA | 3.46AA Large | 1.31— | Same color |
Shades
Shades and tints (50–950)
