AfoliOpen Afoli →

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

HEXRGBHSLCMYKNearest named color
#1D0020rgb(29, 0, 32)hsl(294, 100%, 6%)9, 100, 0, 87≈ Midnight Blue
#273B00rgb(39, 59, 0)hsl(80, 100%, 12%)34, 0, 100, 77≈ Dark Slate Gray
#DDD9F0rgb(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
Button

Roles: background #1D0020, surface #273B00, text #DDD9F0, primary #DDD9F0, accent #DDD9F0 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background14.22 : 1-85Pass
Text on a card8.91 : 1-79Pass
Button label14.22 : 185Pass
Heading on background14.22 : 1-85Pass
Link on a card8.91 : 1-79Pass
Accent badge on a card8.91 : 1-79Pass
Primary control on background14.22 : 1-85Pass

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 {
  --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

Sources and licences

Updated November 21, 2026