PreviewingGo to this paletteOpen in generator
Code
/* Oxford Blue — colorset.net */
:root {
--color-1: #F3F0E8;
--color-2: #1F3556;
--color-3: #A2703A;
--color-4: #DAD4C6;
--color-5: #171A20;
--color-bg: #F3F0E8;
--color-surface: #F9F7F3;
--color-border: #DCD7CC;
--color-text: #171A20;
--color-muted: #676B73;
--color-primary: #9C6A34;
--color-on-primary: #FFFFFF;
--color-accent: #1F3556;
--color-on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #171A20;
--color-surface: #21252B;
--color-border: #353A43;
--color-text: #F3F0E8;
--color-muted: #908E86;
--color-primary: #9C6A34;
--color-on-primary: #FFFFFF;
--color-accent: #576F94;
--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 | from palette · color 1 | from palette · color 5 |
| Surface | derived | derived |
| Border | derived | derived |
| Text | from palette · color 5 | from palette · color 1 |
| Muted text | derived | derived |
| Primary | adjusted for contrast · from #A2703A | adjusted for contrast · from #A2703A |
| On primary | derived | derived |
| Accent | from palette · color 2 | adjusted for contrast · from #A2703A |
| On accent | derived | derived |
Contrast
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.30:1 | AAA pass 4.5:1 | |
| Text on surface | 16.29:1 | AAA pass 4.5:1 | |
| Muted text on background | 4.70:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 12.34:1 | AAA pass 4.5:1 | |
| Primary on background | 4.08:1 | AA Large pass 3:1 | |
| Accent on background | 10.84:1 | AAA pass 3:1 |
| Pair | Sample | Ratio | WCAG |
|---|---|---|---|
| Text on background | 15.30:1 | AAA pass 4.5:1 | |
| Text on surface | 13.52:1 | AAA pass 4.5:1 | |
| Muted text on background | 5.31:1 | AA pass 4.5:1 | |
| Label on primary | 4.64:1 | AA pass 4.5:1 | |
| Label on accent | 5.11:1 | AA pass 4.5:1 | |
| Primary on background | 3.75: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 | #F3F0E8 (Text 1) | #1F3556 (Text 2) | #A2703A (Text 3) | #DAD4C6 (Text 4) | #171A20 (Text 5) |
|---|---|---|---|---|---|
| #F3F0E8 | Same color | 10.84AAA | 3.75AA Large | 1.30— | 15.30AAA |
| #1F3556 | 10.84AAA | Same color | 2.89— | 8.35AAA | 1.41— |
| #A2703A | 3.75AA Large | 2.89— | Same color | 2.89— | 4.08AA Large |
| #DAD4C6 | 1.30— | 8.35AAA | 2.89— | Same color | 11.80AAA |
| #171A20 | 15.30AAA | 1.41— | 4.08AA Large | 11.80AAA | Same color |
Shades
Shades and tints (50–950)
