PreviewingGo to this paletteOpen in generator
Code
/* Blue Electric — colorset.net */
:root {
--color-1: #1E1B4B;
--color-2: #312E81;
--color-3: #3730A3;
--color-4: #4338CA;
--color-5: #4F46E5;
--color-bg: #F4F6FF;
--color-surface: #EAEDFB;
--color-border: #D0D4E6;
--color-text: #1E1B4B;
--color-muted: #676983;
--color-primary: #4F46E5;
--color-on-primary: #FFFFFF;
--color-accent: #312E81;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D0D1E;
--color-surface: #171729;
--color-border: #2A2B41;
--color-text: #9CA3C5;
--color-muted: #7C819B;
--color-primary: #544DEC;
--color-on-primary: #FFFFFF;
--color-accent: #606299;
--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 #4F46E5 | adjusted for contrast · from #1E1B4B |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #4F46E5 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | adjusted for contrast · from #4F46E5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #4338CA |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.82:1 | AAA pass 4.5:1 | |
| Text on surface | 13.71:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.96:1 | AA pass 4.5:1 | |
| Label on primary | 6.29:1 | AA pass 4.5:1 | |
| Label on accent | 11.42:1 | AAA pass 4.5:1 | |
| Primary on background | 5.83:1 | AA pass 3:1 | |
| Accent on background | 10.59:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.00:1 | AA pass 4.5:1 | |
| Label on primary | 5.75:1 | AA pass 4.5:1 | |
| Label on accent | 5.67:1 | AA pass 4.5:1 | |
| Primary on background | 3.34:1 | AA Large pass 3:1 | |
| Accent on background | 3.39: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 | #1E1B4B (Text 1) | #312E81 (Text 2) | #3730A3 (Text 3) | #4338CA (Text 4) | #4F46E5 (Text 5) |
|---|---|---|---|---|---|
| #1E1B4B | Same color | 1.40— | 1.61— | 2.02— | 2.54— |
| #312E81 | 1.40— | Same color | 1.15— | 1.45— | 1.82— |
| #3730A3 | 1.61— | 1.15— | Same color | 1.26— | 1.58— |
| #4338CA | 2.02— | 1.45— | 1.26— | Same color | 1.26— |
| #4F46E5 | 2.54— | 1.82— | 1.58— | 1.26— | Same color |
Shades
Shades and tints (50–950)
