PreviewingGo to this paletteOpen in generator
Code
/* Royal Electric — colorset.net */
:root {
--color-1: #0033CC;
--color-2: #1A4DE6;
--color-3: #3366FF;
--color-4: #5C80FF;
--color-5: #8599FF;
--color-bg: #F4F6FF;
--color-surface: #E9EDFB;
--color-border: #CFD4E6;
--color-text: #354D80;
--color-muted: #5F6B83;
--color-primary: #3366FF;
--color-on-primary: #FFFFFF;
--color-accent: #0033CC;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #080F1F;
--color-surface: #11192A;
--color-border: #232E42;
--color-text: #9BA4C5;
--color-muted: #7B829C;
--color-primary: #3366FF;
--color-on-primary: #FFFFFF;
--color-accent: #8599FF;
--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 #8599FF | adjusted for contrast · from #0033CC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #0033CC | adjusted for contrast · from #8599FF |
| Muted text | derived | derived |
| Primary | from palette · color 3 | from palette · color 3 |
| On primary | derived | derived |
| Accent | from palette · color 1 | from palette · color 5 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.71:1 | AAA pass 4.5:1 | |
| Text on surface | 7.12:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 8.95:1 | AAA pass 4.5:1 | |
| Primary on background | 4.34:1 | AA Large pass 3:1 | |
| Accent on background | 8.30:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.75:1 | AAA pass 4.5:1 | |
| Text on surface | 7.11:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.02:1 | AA pass 4.5:1 | |
| Label on primary | 4.68:1 | AA pass 4.5:1 | |
| Label on accent | 7.28:1 | AAA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 7.28: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 | #0033CC (Text 1) | #1A4DE6 (Text 2) | #3366FF (Text 3) | #5C80FF (Text 4) | #8599FF (Text 5) |
|---|---|---|---|---|---|
| #0033CC | Same color | 1.38— | 1.91— | 2.55— | 3.41AA Large |
| #1A4DE6 | 1.38— | Same color | 1.38— | 1.84— | 2.46— |
| #3366FF | 1.91— | 1.38— | Same color | 1.33— | 1.78— |
| #5C80FF | 2.55— | 1.84— | 1.33— | Same color | 1.34— |
| #8599FF | 3.41AA Large | 2.46— | 1.78— | 1.34— | Same color |
Shades
Shades and tints (50–950)
