AfoliOpen Afoli →

Midnight Blue & Gainsboro

A dark palette of 5 colors from the Afoli gallery: #0A0600, #181625, #322263, #1C496F, #CCDBFA.

Open in the Afoli palette generator →

#0A0600 · Black#181625 · Midnight Blue#322263 · Midnight Blue#1C496F · Dark Slate Gray#CCDBFA · Gainsboro

Colors in this palette

HEXRGBHSLCMYKNearest named color
#0A0600rgb(10, 6, 0)hsl(36, 100%, 2%)0, 40, 100, 96≈ Black
#181625rgb(24, 22, 37)hsl(248, 25%, 12%)35, 41, 0, 85≈ Midnight Blue
#322263rgb(50, 34, 99)hsl(255, 49%, 26%)49, 66, 0, 61≈ Midnight Blue
#1C496Frgb(28, 73, 111)hsl(207, 60%, 27%)75, 34, 0, 56≈ Dark Slate Gray
#CCDBFArgb(204, 219, 250)hsl(220, 82%, 89%)18, 12, 0, 2≈ Gainsboro

Preview in a UI

A heading in the primary color

Body text on the background, as a page or an app would show it.

Text on a card · #322263
Button

Roles: background #CCDBFA, surface #CCDBFA, text #0A0600, primary #322263, accent #1C496F (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background14.52 : 185Pass
Text on a card14.52 : 185Pass
Button label9.76 : 1-80Pass
Heading on background9.76 : 178Pass
Link on a card9.76 : 178Pass
Accent badge on a card6.76 : 170Pass
Primary control on background9.76 : 178Pass

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

CSS variables

:root {
  --black: #0A0600;
  --midnight-blue: #181625;
  --midnight-blue-2: #322263;
  --dark-slate-gray: #1C496F;
  --gainsboro: #CCDBFA;
}

How this palette was made

Afoli generated it from a fixed seed and kept it because it passes the gallery rules: every color is clearly distinct, one pair reaches 4.5 : 1 for text and the colors span a wide light-to-dark range. It is free to use (CC0).

Frequently asked questions

How do I use the Midnight Blue & Gainsboro palette in CSS?

Copy the CSS variables on this page, or open the palette in the Afoli generator to export Tailwind, JSON, SVG, PNG or Adobe ASE.

Which colors of Midnight Blue & Gainsboro can I use for text?

#0A0600 text on #CCDBFA reaches 14.52 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026