Swatchproof

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

ColourHEXRGBOKLCHText on it
MIDNIGHT DENIM #2E465Drgb(46 70 93)oklch(38.5% 0.049 248.2) White (9.77:1)
OLIVE MARTINI #686923rgb(104 105 35)oklch(50.5% 0.091 110.1) White (5.78:1)
WILD CARAMEL #B27945rgb(178 121 69)oklch(62.4% 0.099 61.8) Black (5.71:1)
LAVENDER HAZE #9986B3rgb(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.

PairRatioBody text AA (4.5:1)Body text AAA (7:1)Large text and icons (3:1)
MIDNIGHT DENIM / LAVENDER HAZE2.98:1FailFailFail
MIDNIGHT DENIM / WILD CARAMEL2.66:1FailFailFail
OLIVE MARTINI / LAVENDER HAZE1.77:1FailFailFail
MIDNIGHT DENIM / OLIVE MARTINI1.69:1FailFailFail
OLIVE MARTINI / WILD CARAMEL1.57:1FailFailFail
WILD CARAMEL / LAVENDER HAZE1.12:1FailFailFail

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;
}

Preview on a dashboard