PreviewingGo to this paletteOpen in generator
Code
/* Dark Selvedge Denim — colorset.net */
:root {
--color-1: #151B54;
--color-2: #1560BD;
--color-3: #1E3A8A;
--color-4: #2E5090;
--color-5: #4169E1;
--color-bg: #F3F7FF;
--color-surface: #E7EEFB;
--color-border: #CDD5E6;
--color-text: #161D4E;
--color-muted: #636B83;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #1E3A8A;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #0A0E1F;
--color-surface: #14182A;
--color-border: #272D42;
--color-text: #96A4C5;
--color-muted: #78839C;
--color-primary: #4169E1;
--color-on-primary: #FFFFFF;
--color-accent: #5564A3;
--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 #4169E1 | adjusted for contrast · from #151B54 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #151B54 | adjusted for contrast · from #4169E1 |
| Muted text | derived | derived |
| Primary | from palette · color 5 | from palette · color 5 |
| On primary | derived | derived |
| Accent | from palette · color 3 | adjusted for contrast · from #1560BD |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 14.82:1 | AAA pass 4.5:1 | |
| Text on surface | 13.65:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.94:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 10.36:1 | AAA pass 4.5:1 | |
| Primary on background | 4.51:1 | AA pass 3:1 | |
| Accent on background | 9.65:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.68:1 | AAA pass 4.5:1 | |
| Text on surface | 7.05:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.04:1 | AA pass 4.5:1 | |
| Label on primary | 4.85:1 | AA pass 4.5:1 | |
| Label on accent | 5.62:1 | AA pass 4.5:1 | |
| Primary on background | 3.95:1 | AA Large pass 3:1 | |
| Accent on background | 3.41: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 | #151B54 (Text 1) | #1560BD (Text 2) | #1E3A8A (Text 3) | #2E5090 (Text 4) | #4169E1 (Text 5) |
|---|---|---|---|---|---|
| #151B54 | Same color | 2.61— | 1.54— | 2.03— | 3.29AA Large |
| #1560BD | 2.61— | Same color | 1.70— | 1.29— | 1.26— |
| #1E3A8A | 1.54— | 1.70— | Same color | 1.32— | 2.14— |
| #2E5090 | 2.03— | 1.29— | 1.32— | Same color | 1.62— |
| #4169E1 | 3.29AA Large | 1.26— | 2.14— | 1.62— | Same color |
Shades
Shades and tints (50–950)
