Hunter Green & Gainsboro
A dark palette of 3 colors from the Afoli gallery: #1D0020, #273B00, #DDD9F0.
Open in the Afoli palette generator →
#1D0020 · Midnight Blue#273B00 · Dark Slate Gray#DDD9F0 · Gainsboro
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #1D0020 | rgb(29, 0, 32) | hsl(294, 100%, 6%) | 9, 100, 0, 87 | ≈ Midnight Blue |
| #273B00 | rgb(39, 59, 0) | hsl(80, 100%, 12%) | 34, 0, 100, 77 | ≈ Dark Slate Gray |
| #DDD9F0 | rgb(221, 217, 240) | hsl(250, 43%, 90%) | 8, 10, 0, 6 | ≈ 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 · #DDD9F0
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 14.22 : 1 | -85 | Pass |
| Text on a card | 8.91 : 1 | -79 | Pass |
| Button label | 14.22 : 1 | 85 | Pass |
| Heading on background | 14.22 : 1 | -85 | Pass |
| Link on a card | 8.91 : 1 | -79 | Pass |
| Accent badge on a card | 8.91 : 1 | -79 | Pass |
| Primary control on background | 14.22 : 1 | -85 | Pass |
CSS variables
:root {
--midnight-blue: #1D0020;
--dark-slate-gray: #273B00;
--gainsboro: #DDD9F0;
}
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 Hunter Green & 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 Hunter Green & Gainsboro can I use for text?
#1D0020 text on #DDD9F0 reaches 14.22 : 1, the strongest pair of the palette.
Similar palettes
- Dark Olive & Lavender
- Aubergine & Lavender
- Dark Olive & Beige
- Navy Green & Gainsboro
- Burgundy & Powder Blue
- Evergreen & Lavender
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)