Dark Indigo & Alice Blue
A calm palette of 3 colors from the Afoli gallery: #2B174B, #997194, #F0F5FF.
Open in the Afoli palette generator →
#2B174B · Midnight Blue#997194 · Gray#F0F5FF · Alice Blue
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #2B174B | rgb(43, 23, 75) | hsl(263, 53%, 19%) | 43, 69, 0, 71 | ≈ Midnight Blue |
| #997194 | rgb(153, 113, 148) | hsl(308, 16%, 52%) | 0, 26, 3, 40 | ≈ Gray |
| #F0F5FF | rgb(240, 245, 255) | hsl(220, 100%, 97%) | 6, 4, 0, 0 | ≈ Alice Blue |
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 · #997194
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 14.48 : 1 | -98 | Pass |
| Text on a card | 14.48 : 1 | -98 | Pass |
| Button label | 3.88 : 1 | 33 | Fail |
| Heading on background | 3.88 : 1 | -31 | Pass (WCAG) |
| Link on a card | 3.88 : 1 | -31 | Fail |
| Accent badge on a card | 3.88 : 1 | -31 | Pass (WCAG) |
| Primary control on background | 3.88 : 1 | -31 | Pass (WCAG) |
CSS variables
:root {
--midnight-blue: #2B174B;
--gray: #997194;
--alice-blue: #F0F5FF;
}
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 Dark Indigo & Alice Blue 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 Dark Indigo & Alice Blue can I use for text?
#2B174B text on #F0F5FF reaches 14.48 : 1, the strongest pair of the palette.
Similar palettes
- Dark Purple & Pale Sky Blue
- Dark Mauve & Lavender
- Dark Slate Blue & Lavender Blush
- Light Violet & Midnight Purple
- Night Blue & Alice Blue (Mono)
- Aubergine & Lavender Blush
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)