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
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #1F1800 | rgb(31, 24, 0) | hsl(46, 100%, 6%) | 0, 23, 100, 88 | ≈ Dark Slate Gray |
| #1E337A | rgb(30, 51, 122) | hsl(226, 61%, 30%) | 75, 58, 0, 52 | ≈ Midnight Blue |
| #766200 | rgb(118, 98, 0) | hsl(50, 100%, 23%) | 0, 17, 100, 54 | ≈ Dark Olive Green |
| #6775E7 | rgb(103, 117, 231) | hsl(233, 73%, 65%) | 55, 49, 0, 9 | ≈ Medium Slate Blue |
| #CAA500 | rgb(202, 165, 0) | hsl(49, 100%, 40%) | 0, 18, 100, 21 | ≈ Goldenrod |
| #E2E7FF | rgb(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
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 14.39 : 1 | -92 | Pass |
| Text on a card | 9.45 : 1 | -85 | Pass |
| Button label | 4.44 : 1 | 36 | Fail |
| Heading on background | 4.44 : 1 | -34 | Pass (WCAG) |
| Link on a card | 2.91 : 1 | -27 | Fail |
| Accent badge on a card | 4.91 : 1 | -48 | Pass |
| Primary control on background | 4.44 : 1 | -34 | Pass (WCAG) |
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
- Windows Blue & Lavender
- Yellowish Brown & Dark Brown
- Warm Brown & Lavender
- Bright Olive & Night Blue
- Icky Green & Very Dark Green
- Dull Orange & Twilight Blue
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)