A five-color palette

Cobalt: a cobalt, navy and ice blue color palette

A saturated cobalt for buttons and links, a deeper blue and a navy for headers, light blue and ice for backgrounds. Its hex codes are #1885d5, #1f4e75, #002a4a, #8ecaff, #d0efff. Open it in Recolor (recolor.page) to see it on a real web page, or copy the code below.

Last updated

#1885d5Steel Blue
#1f4e75Dark Slate Grey
#002a4aMidnight Blue
#8ecaffLight Sky Blue
#d0efffLavender
Computed with Recolor's own color code (culori, the WCAG 2 contrast ratio), October 8, 2026
HexNearest CSS nameOKLCHBlack text, AAWhite text, AA
#1885d5Steel Blue (steelblue)oklch(60.0% 0.151 247.5)5.35:1 passes3.92:1 fails
#1f4e75Dark Slate Grey (darkslategrey)oklch(41.1% 0.083 246.7)2.40:1 fails8.73:1 passes
#002a4aMidnight Blue (midnightblue)oklch(27.8% 0.073 247.3)1.43:1 fails14.68:1 passes
#8ecaffLight Sky Blue (lightskyblue)oklch(81.8% 0.097 246.0)12.04:1 passes1.74:1 fails
#d0efffLavender (lavender)oklch(93.5% 0.039 230.2)17.47:1 passes1.20: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; #002a4a 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

CSS
:root {
  --color-1: #1885d5;
  --color-2: #1f4e75;
  --color-3: #002a4a;
  --color-4: #8ecaff;
  --color-5: #d0efff;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #1885d5;
  --color-2: #1f4e75;
  --color-3: #002a4a;
  --color-4: #8ecaff;
  --color-5: #d0efff;
  --color-primary: #1885d5;
  --color-secondary: #1f4e75;
  --color-accent: #002a4a;
}

SCSS variables

SCSS
$color-1: #1885d5;
$color-2: #1f4e75;
$color-3: #002a4a;
$color-4: #8ecaff;
$color-5: #d0efff;
$color-primary: $color-1;
$color-secondary: $color-2;
$color-accent: $color-3;

JSON

JSON
{
  "colors": [
    "#1885d5",
    "#1f4e75",
    "#002a4a",
    "#8ecaff",
    "#d0efff"
  ]
}

Hex list

Text
#1885d5
#1f4e75
#002a4a
#8ecaff
#d0efff

Coolors link

URL
https://coolors.co/1885d5-1f4e75-002a4a-8ecaff-d0efff