AfoliOpen Afoli →

Cornflower & Dark Brown

A bold palette of 6 colors from the Afoli gallery: #1F1800, #1E337A, #766200, #6775E7, #CAA500, #E2E7FF.

Open in the Afoli palette generator →

#1F1800 · Dark Slate Gray#1E337A · Midnight Blue#766200 · Dark Olive Green#6775E7 · Medium Slate Blue#CAA500 · Goldenrod#E2E7FF · Lavender

Colors in this palette

HEXRGBHSLCMYKNearest named color
#1F1800rgb(31, 24, 0)hsl(46, 100%, 6%)0, 23, 100, 88≈ Dark Slate Gray
#1E337Argb(30, 51, 122)hsl(226, 61%, 30%)75, 58, 0, 52≈ Midnight Blue
#766200rgb(118, 98, 0)hsl(50, 100%, 23%)0, 17, 100, 54≈ Dark Olive Green
#6775E7rgb(103, 117, 231)hsl(233, 73%, 65%)55, 49, 0, 9≈ Medium Slate Blue
#CAA500rgb(202, 165, 0)hsl(49, 100%, 40%)0, 18, 100, 21≈ Goldenrod
#E2E7FFrgb(226, 231, 255)hsl(230, 100%, 94%)11, 9, 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 · #6775E7
Button

Roles: background #1F1800, surface #1E337A, text #E2E7FF, primary #6775E7, accent #CAA500 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background14.39 : 1-92Pass
Text on a card9.45 : 1-85Pass
Button label4.44 : 136Fail
Heading on background4.44 : 1-34Pass (WCAG)
Link on a card2.91 : 1-27Fail
Accent badge on a card4.91 : 1-48Pass
Primary control on background4.44 : 1-34Pass (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 {
  --dark-slate-gray: #1F1800;
  --midnight-blue: #1E337A;
  --dark-olive-green: #766200;
  --medium-slate-blue: #6775E7;
  --goldenrod: #CAA500;
  --lavender: #E2E7FF;
}

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 Cornflower & Dark Brown 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 Cornflower & Dark Brown can I use for text?

#1F1800 text on #E2E7FF reaches 14.39 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026