Midnight Purple & Beige
A dark palette of 4 colors from the Afoli gallery: #07002A, #250A40, #3A3242, #E6F4CE.
Open in the Afoli palette generator →
#07002A · Midnight Blue#250A40 · Midnight Blue#3A3242 · Dark Slate Gray#E6F4CE · Beige
Colors in this palette
| HEX | RGB | HSL | CMYK | Nearest named color |
|---|---|---|---|---|
| #07002A | rgb(7, 0, 42) | hsl(250, 100%, 8%) | 83, 100, 0, 84 | ≈ Midnight Blue |
| #250A40 | rgb(37, 10, 64) | hsl(270, 73%, 15%) | 42, 84, 0, 75 | ≈ Midnight Blue |
| #3A3242 | rgb(58, 50, 66) | hsl(270, 14%, 23%) | 12, 24, 0, 74 | ≈ Dark Slate Gray |
| #E6F4CE | rgb(230, 244, 206) | hsl(82, 63%, 88%) | 6, 0, 16, 4 | ≈ Beige |
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 · #250A40
ButtonContrast of the UI pairs
| Pair | WCAG 2.x ratio | APCA Lc | Result |
|---|---|---|---|
| Body text on background | 17.45 : 1 | 96 | Pass |
| Text on a card | 17.45 : 1 | 96 | Pass |
| Button label | 15.21 : 1 | -96 | Pass |
| Heading on background | 15.21 : 1 | 94 | Pass |
| Link on a card | 15.21 : 1 | 94 | Pass |
| Accent badge on a card | 10.61 : 1 | 88 | Pass |
| Primary control on background | 15.21 : 1 | 94 | Pass |
CSS variables
:root {
--midnight-blue: #07002A;
--midnight-blue-2: #250A40;
--dark-slate-gray: #3A3242;
--beige: #E6F4CE;
}
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 Midnight Purple & Beige 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 Midnight Purple & Beige can I use for text?
#07002A text on #E6F4CE reaches 17.45 : 1, the strongest pair of the palette.
Similar palettes
- Dark Olive & Beige
- Marine & Papaya Whip
- Plum Purple & Beige
- Marine & Bisque
- Marine & Lavender (Dark)
- Royal Purple & Antique White
Sources and licences
- Afoli palette gallery — own data, CC0 1.0 (scripts/color_palettes_build.mjs)
- CSS named colors (W3C) · xkcd color survey (CC0)