PreviewingGo to this paletteOpen in generator
Code
/* Blue Dark — colorset.net */
:root {
--color-1: #0D1421;
--color-2: #1A237E;
--color-3: #303F9F;
--color-4: #3F51B5;
--color-5: #5C6BC0;
--color-bg: #F4F6FF;
--color-surface: #E9EDFB;
--color-border: #CFD4E6;
--color-text: #0D1421;
--color-muted: #60697A;
--color-primary: #3F51B5;
--color-on-primary: #FFFFFF;
--color-accent: #1A237E;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0D1421;
--color-surface: #171E2C;
--color-border: #2A3345;
--color-text: #9FA8CA;
--color-muted: #7D849E;
--color-primary: #4C60C6;
--color-on-primary: #FFFFFF;
--color-accent: #606A7A;
--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 #5C6BC0 | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #5C6BC0 |
| Muted text | derived | derived |
| Primary | from palette · color 4 | adjusted for contrast · from #5C6BC0 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #5C6BC0 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 17.09:1 | AAA pass 4.5:1 | |
| Text on surface | 15.78:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.13:1 | AA pass 4.5:1 | |
| Label on primary | 6.87:1 | AA pass 4.5:1 | |
| Label on accent | 13.24:1 | AAA pass 4.5:1 | |
| Primary on background | 6.37:1 | AA pass 3:1 | |
| Accent on background | 12.28:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.84:1 | AAA pass 4.5:1 | |
| Text on surface | 7.09:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.97:1 | AA pass 4.5:1 | |
| Label on primary | 5.53:1 | AA pass 4.5:1 | |
| Label on accent | 5.47:1 | AA pass 4.5:1 | |
| Primary on background | 3.33:1 | AA Large pass 3:1 | |
| Accent on background | 3.37: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 | #0D1421 (Text 1) | #1A237E (Text 2) | #303F9F (Text 3) | #3F51B5 (Text 4) | #5C6BC0 (Text 5) |
|---|---|---|---|---|---|
| #0D1421 | Same color | 1.39— | 2.05— | 2.68— | 3.79AA Large |
| #1A237E | 1.39— | Same color | 1.47— | 1.93— | 2.72— |
| #303F9F | 2.05— | 1.47— | Same color | 1.31— | 1.85— |
| #3F51B5 | 2.68— | 1.93— | 1.31— | Same color | 1.41— |
| #5C6BC0 | 3.79AA Large | 2.72— | 1.85— | 1.41— | Same color |
Shades
Shades and tints (50–950)
