PreviewingGo to this paletteOpen in generator
Code
/* Denim Chambray — colorset.net */
:root {
--color-1: #4F7CAC;
--color-2: #6B92BF;
--color-3: #87A8D1;
--color-4: #A2BDDE;
--color-5: #5A83B3;
--color-bg: #F1F7FF;
--color-surface: #E6EEF9;
--color-border: #CBD6E3;
--color-text: #24507D;
--color-muted: #5A6D81;
--color-primary: #4C79A9;
--color-on-primary: #FFFFFF;
--color-accent: #6F88A7;
--color-on-accent: #000000;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #04101E;
--color-surface: #0D1A29;
--color-border: #1E2F41;
--color-text: #A5BDDA;
--color-muted: #73859B;
--color-primary: #4C79A9;
--color-on-primary: #FFFFFF;
--color-accent: #87A8D1;
--color-on-accent: #04101E;
}
}
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 #A2BDDE | adjusted for contrast · from #4F7CAC |
| Surface | derived | derived |
| Border | derived | derived |
| Text | adjusted for contrast · from #4F7CAC | adjusted for contrast · from #A2BDDE |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #4F7CAC | adjusted for contrast · from #4F7CAC |
| On primary | derived | derived |
| Accent | adjusted for contrast · from #5A83B3 | from palette · color 3 |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 7.74:1 | AAA pass 4.5:1 | |
| Text on surface | 7.13:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.95:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 5.76:1 | AA pass 4.5:1 | |
| Primary on background | 4.22:1 | AA Large pass 3:1 | |
| Accent on background | 3.39:1 | AA Large pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 9.92:1 | AAA pass 4.5:1 | |
| Text on surface | 9.10:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.06:1 | AA pass 4.5:1 | |
| Label on primary | 4.55:1 | AA pass 4.5:1 | |
| Label on accent | 7.79:1 | AAA pass 4.5:1 | |
| Primary on background | 4.20:1 | AA Large pass 3:1 | |
| Accent on background | 7.79: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 | #4F7CAC (Text 1) | #6B92BF (Text 2) | #87A8D1 (Text 3) | #A2BDDE (Text 4) | #5A83B3 (Text 5) |
|---|---|---|---|---|---|
| #4F7CAC | Same color | 1.35— | 1.78— | 2.26— | 1.11— |
| #6B92BF | 1.35— | Same color | 1.32— | 1.68— | 1.22— |
| #87A8D1 | 1.78— | 1.32— | Same color | 1.27— | 1.60— |
| #A2BDDE | 2.26— | 1.68— | 1.27— | Same color | 2.04— |
| #5A83B3 | 1.11— | 1.22— | 1.60— | 2.04— | Same color |
Shades
Shades and tints (50–950)
