A five-color palette
Denim: a sky blue, denim and periwinkle color palette
A sky blue and a denim blue with a pale blue, a periwinkle and a dark violet-navy. Its hex codes are #58befb, #234b7e, #cbddff, #6575bf, #241c38. Open it in Recolor (recolor.page) to see it on a real web page, or copy the code below.
Last updated
| Hex | Nearest CSS name | OKLCH | Black text, AA | White text, AA |
|---|---|---|---|---|
#58befb | Deep Sky Blue (deepskyblue) | oklch(76.6% 0.129 238.0) | 10.17:1 passes | 2.06:1 fails |
#234b7e | Dark Slate Blue (darkslateblue) | oklch(41.1% 0.097 255.6) | 2.38:1 fails | 8.83:1 passes |
#cbddff | Lavender (lavender) | oklch(89.5% 0.051 263.2) | 15.33:1 passes | 1.37:1 fails |
#6575bf | Steel Blue (steelblue) | oklch(58.3% 0.115 273.1) | 4.85:1 passes | 4.33:1 fails |
#241c38 | Midnight Blue (midnightblue) | oklch(25.1% 0.052 295.5) | 1.30:1 fails | 16.18:1 passes |
Using the palette
In Recolor the lightness and the order of the colors are meaning. On a light page #cbddff, the lightest of the five, takes the background and #241c38, the darkest, the text, and the page's other greys keep their place between the two; on a dark page the two swap. The other three take the page's colors in their order: the first of them its heaviest brand color, the next the one after. Reorder the swatches and the page reorders with them; mapping explains it, and the Tint choice that keeps a page's greys as they were. To keep text readable, the table above says whether black or white text reaches the WCAG AA ratio of 4.5:1 on each color.
The code below is what Recolor's own Export panel writes for this palette. The Tailwind block is a Tailwind v4 @theme block, and the Coolors link opens the same colors there. To see the palette on your own site first, follow previewing a palette on a real website.
The palette as code
CSS variables
:root {
--color-1: #58befb;
--color-2: #234b7e;
--color-3: #cbddff;
--color-4: #6575bf;
--color-5: #241c38;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #58befb;
--color-2: #234b7e;
--color-3: #cbddff;
--color-4: #6575bf;
--color-5: #241c38;
--color-primary: #58befb;
--color-secondary: #234b7e;
--color-accent: #cbddff;
}SCSS variables
$color-1: #58befb;
$color-2: #234b7e;
$color-3: #cbddff;
$color-4: #6575bf;
$color-5: #241c38;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#58befb",
"#234b7e",
"#cbddff",
"#6575bf",
"#241c38"
]
}Hex list
#58befb
#234b7e
#cbddff
#6575bf
#241c38Coolors link
https://coolors.co/58befb-234b7e-cbddff-6575bf-241c38