Skip to content

Denim Palette

CSS variables
:root {
  --color-1: #1E3A5F;
  --color-2: #2E5A88;
  --color-3: #5B8FB9;
  --color-4: #A8C5DD;
  --color-5: #E3EDF5;
}
Tailwind config
// tailwind.config.js
colors: {
  "denim-1": "#1E3A5F",
  "denim-2": "#2E5A88",
  "denim-3": "#5B8FB9",
  "denim-4": "#A8C5DD",
  "denim-5": "#E3EDF5",
}
About this palette

The Denim palette is a curated set of 5 colors with their HEX, RGB and ready CSS-variable and Tailwind exports. Click any swatch for that color's full breakdown — conversions, contrast and harmonies.

Readable text on each color

White and near-black measured against every swatch. AA means the pairing clears 4.5:1 for body text; Large means it only clears 3:1, so reserve it for 24px and up.

Aa
#1E3A5FWhite11.50:1AA
Aa
#2E5A88White7.16:1AA
Aa
#5B8FB9Near-black5.47:1AA
Aa
#A8C5DDNear-black10.52:1AA
Aa
#E3EDF5Near-black15.92:1AA
These colours on each other

6 of the 20 combinations inside this palette clear 4.5:1 for body text. Rows are the text colour, columns the background.

text \\ background#1E3A5F#2E5A88#5B8FB9#A8C5DD#E3EDF5
#1E3A5F1.61Fails3.33Large only6.41AA9.69AA
#2E5A881.61Fails2.07Fails3.99Large only6.03AA
#5B8FB93.33Large only2.07Fails1.93Fails2.91Fails
#A8C5DD6.41AA3.99Large only1.93Fails1.51Fails
#E3EDF59.69AA6.03AA2.91Fails1.51Fails
More palettes

Related

Gradients in the same range

✓ Copied