PreviewingGo to this paletteOpen in generator
Code
/* Blue Night — colorset.net */
:root {
--color-1: #0F172A;
--color-2: #1E293B;
--color-3: #334155;
--color-4: #475569;
--color-5: #64748B;
--color-bg: #F2F7FF;
--color-surface: #E8EEF6;
--color-border: #CED6E0;
--color-text: #0F172A;
--color-muted: #616C83;
--color-primary: #64748B;
--color-on-primary: #FFFFFF;
--color-accent: #1E293B;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0F172A;
--color-surface: #192236;
--color-border: #2D374C;
--color-text: #9CAEC6;
--color-muted: #7A8AA1;
--color-primary: #64748B;
--color-on-primary: #FFFFFF;
--color-accent: #99A7BC;
--color-on-accent: #0F172A;
}
}
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 #64748B | from palette · color 1 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 1 | adjusted for contrast · from #64748B |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #64748B |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 16.60:1 | AAA pass 4.5:1 | |
| Text on surface | 15.30:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.90:1 | AA pass 4.5:1 | |
| Label on primary | 4.76:1 | AA pass 4.5:1 | |
| Label on accent | 14.63:1 | AAA pass 4.5:1 | |
| Primary on background | 4.42:1 | AA Large pass 3:1 | |
| Accent on background | 13.60:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.89:1 | AAA pass 4.5:1 | |
| Text on surface | 7.01:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.08:1 | AA pass 4.5:1 | |
| Label on primary | 4.76:1 | AA pass 4.5:1 | |
| Label on accent | 7.32:1 | AAA pass 4.5:1 | |
| Primary on background | 3.75:1 | AA Large pass 3:1 | |
| Accent on background | 7.32: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 | #0F172A (Text 1) | #1E293B (Text 2) | #334155 (Text 3) | #475569 (Text 4) | #64748B (Text 5) |
|---|---|---|---|---|---|
| #0F172A | Same color | 1.22— | 1.72— | 2.36— | 3.75AA Large |
| #1E293B | 1.22— | Same color | 1.41— | 1.93— | 3.07AA Large |
| #334155 | 1.72— | 1.41— | Same color | 1.37— | 2.18— |
| #475569 | 2.36— | 1.93— | 1.37— | Same color | 1.59— |
| #64748B | 3.75AA Large | 3.07AA Large | 2.18— | 1.59— | Same color |
Shades
Shades and tints (50–950)
