AfoliOpen Afoli →

Olive Green & Dark Maroon

A vivid palette of 4 colors from the Afoli gallery: #2C071A, #0071AF, #5B7700, #00C2D9.

Open in the Afoli palette generator →

#2C071A · Midnight Blue#0071AF · Steel Blue#5B7700 · Dark Olive Green#00C2D9 · Dark Turquoise

Colors in this palette

HEXRGBHSLCMYKNearest named color
#2C071Argb(44, 7, 26)hsl(329, 73%, 10%)0, 84, 41, 83≈ Midnight Blue
#0071AFrgb(0, 113, 175)hsl(201, 100%, 34%)100, 35, 0, 31≈ Steel Blue
#5B7700rgb(91, 119, 0)hsl(74, 100%, 23%)24, 0, 100, 53≈ Dark Olive Green
#00C2D9rgb(0, 194, 217)hsl(186, 100%, 43%)100, 11, 0, 15≈ Dark Turquoise

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 · #5B7700
Button

Roles: background #2C071A, surface #2C071A, text #00C2D9, primary #5B7700, accent #0071AF (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background8.43 : 1-59Pass (WCAG)
Text on a card8.43 : 1-59Pass (WCAG)
Button label3.54 : 127Fail
Heading on background3.54 : 1-25Pass (WCAG)
Link on a card3.54 : 1-25Fail
Accent badge on a card3.45 : 1-25Pass (WCAG)
Primary control on background3.54 : 1-25Pass (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: #2C071A;
  --steel-blue: #0071AF;
  --dark-olive-green: #5B7700;
  --dark-turquoise: #00C2D9;
}

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 Olive Green & Dark Maroon 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 Olive Green & Dark Maroon can I use for text?

#2C071A text on #00C2D9 reaches 8.43 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026