Denim & Olive colour palette
The palette uses MIDNIGHT DENIM, OLIVE MARTINI, WILD CARAMEL and LAVENDER HAZE.
Preview on a website Try on walls
Colour codes
| Colour | HEX | RGB | OKLCH | Text on it |
|---|---|---|---|---|
| MIDNIGHT DENIM | #2E465D | rgb(46 70 93) | oklch(38.5% 0.049 248.2) |
White (9.77:1) |
| OLIVE MARTINI | #686923 | rgb(104 105 35) | oklch(50.5% 0.091 110.1) |
White (5.78:1) |
| WILD CARAMEL | #B27945 | rgb(178 121 69) | oklch(62.4% 0.099 61.8) |
Black (5.71:1) |
| LAVENDER HAZE | #9986B3 | rgb(153 134 179) | oklch(65.3% 0.069 303.8) |
Black (6.42:1) |
Contrast between the colours
No pair reaches the 4.5:1 that WCAG AA needs for body text. The strongest is MIDNIGHT DENIM with LAVENDER HAZE at 2.98:1. Use black or white for paragraphs.
| Pair | Ratio | Body text AA (4.5:1) | Body text AAA (7:1) | Large text and icons (3:1) |
|---|---|---|---|---|
| MIDNIGHT DENIM / LAVENDER HAZE | 2.98:1 | Fail | Fail | Fail |
| MIDNIGHT DENIM / WILD CARAMEL | 2.66:1 | Fail | Fail | Fail |
| OLIVE MARTINI / LAVENDER HAZE | 1.77:1 | Fail | Fail | Fail |
| MIDNIGHT DENIM / OLIVE MARTINI | 1.69:1 | Fail | Fail | Fail |
| OLIVE MARTINI / WILD CARAMEL | 1.57:1 | Fail | Fail | Fail |
| WILD CARAMEL / LAVENDER HAZE | 1.12:1 | Fail | Fail | Fail |
Results use the unrounded WCAG 2.2 ratio, so a pair shown as 4.50:1 can still fail. W3C contrast guidance
Use it on a website
Swatchproof puts the lightest workable colour behind the text and changes as few colours as possible to reach 4.5:1.
| Background | #9986B3 LAVENDER HAZE |
|---|---|
| Text | #11283D adjusted from MIDNIGHT DENIM #2E465D to reach 4.5:1 |
| Button | #686923 OLIVE MARTINI |
| Button text | #FFE0C6 adjusted from WILD CARAMEL #B27945 to reach 4.5:1 |
:root {
--background: #9986B3;
--text: #11283D;
--accent: #686923;
--on-accent: #FFE0C6;
}