AfoliOpen Afoli →

Swamp Green & Very Dark Purple

A bold palette of 3 colors from the Afoli gallery: #31002E, #6C8200, #EEE5FF.

Open in the Afoli palette generator →

#31002E · Midnight Blue#6C8200 · Olive#EEE5FF · Lavender

Colors in this palette

HEXRGBHSLCMYKNearest named color
#31002Ergb(49, 0, 46)hsl(304, 100%, 10%)0, 100, 6, 81≈ Midnight Blue
#6C8200rgb(108, 130, 0)hsl(70, 100%, 25%)17, 0, 100, 49≈ Olive
#EEE5FFrgb(238, 229, 255)hsl(261, 100%, 95%)7, 10, 0, 0≈ Lavender

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 · #6C8200
Button

Roles: background #31002E, surface #31002E, text #EEE5FF, primary #6C8200, accent #6C8200 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background14.77 : 1-92Pass
Text on a card14.77 : 1-92Pass
Button label4.13 : 132Fail
Heading on background4.13 : 1-30Pass (WCAG)
Link on a card4.13 : 1-30Fail
Accent badge on a card4.13 : 1-30Pass (WCAG)
Primary control on background4.13 : 1-30Pass (WCAG)

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: #31002E;
  --olive: #6C8200;
  --lavender: #EEE5FF;
}

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 Swamp Green & Very Dark Purple 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 Swamp Green & Very Dark Purple can I use for text?

#31002E text on #EEE5FF reaches 14.77 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026