A five-color palette
Harbor lights: a cyan, navy and lavender color palette
A cyan lead with a light sky blue, a deep navy for text, and a muted slate violet beside pale lavender. Its hex codes are #0097ac, #9fc8ff, #00273c, #575b81, #eedfff. 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 |
|---|---|---|---|---|
#0097ac | Dark Cyan (darkcyan) | oklch(62.1% 0.108 211.9) | 6.02:1 passes | 3.49:1 fails |
#9fc8ff | Light Sky Blue (lightskyblue) | oklch(82.3% 0.089 255.9) | 12.18:1 passes | 1.72:1 fails |
#00273c | Midnight Blue (midnightblue) | oklch(25.9% 0.057 238.0) | 1.36:1 fails | 15.49:1 passes |
#575b81 | Dim Grey (dimgrey) | oklch(48.3% 0.061 279.2) | 3.22:1 fails | 6.52:1 passes |
#eedfff | Lavender (lavender) | oklch(92.5% 0.046 306.6) | 16.63:1 passes | 1.26:1 fails |
Using the palette
In Recolor the order of the colors is meaning: swatch 1 takes the page's heaviest brand color, swatch 2 the next, and the page's greys take a tint of swatch 1 (how that works is in mapping). Reorder the swatches and the page reorders with them. 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; #00273c is the darkest of the five.
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: #0097ac;
--color-2: #9fc8ff;
--color-3: #00273c;
--color-4: #575b81;
--color-5: #eedfff;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #0097ac;
--color-2: #9fc8ff;
--color-3: #00273c;
--color-4: #575b81;
--color-5: #eedfff;
--color-primary: #0097ac;
--color-secondary: #9fc8ff;
--color-accent: #00273c;
}SCSS variables
$color-1: #0097ac;
$color-2: #9fc8ff;
$color-3: #00273c;
$color-4: #575b81;
$color-5: #eedfff;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;JSON
{
"colors": [
"#0097ac",
"#9fc8ff",
"#00273c",
"#575b81",
"#eedfff"
]
}Hex list
#0097ac
#9fc8ff
#00273c
#575b81
#eedfffCoolors link
https://coolors.co/0097ac-9fc8ff-00273c-575b81-eedfff