AfoliOpen Afoli →

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

HEXRGBHSLCMYKNearest named color
#07002Argb(7, 0, 42)hsl(250, 100%, 8%)83, 100, 0, 84≈ Midnight Blue
#250A40rgb(37, 10, 64)hsl(270, 73%, 15%)42, 84, 0, 75≈ Midnight Blue
#3A3242rgb(58, 50, 66)hsl(270, 14%, 23%)12, 24, 0, 74≈ Dark Slate Gray
#E6F4CErgb(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
Button

Roles: background #E6F4CE, surface #E6F4CE, text #07002A, primary #250A40, accent #3A3242 (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background17.45 : 196Pass
Text on a card17.45 : 196Pass
Button label15.21 : 1-96Pass
Heading on background15.21 : 194Pass
Link on a card15.21 : 194Pass
Accent badge on a card10.61 : 188Pass
Primary control on background15.21 : 194Pass

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: #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

Sources and licences

Updated November 21, 2026