AfoliOpen Afoli →

Warm Blue & Medium Green

A vivid palette of 4 colors from the Afoli gallery: #212855, #425BCE, #15B054, #8CB4FF.

Open in the Afoli palette generator →

#212855 · Midnight Blue#425BCE · Royal Blue#15B054 · Medium Sea Green#8CB4FF · Light Sky Blue

Colors in this palette

HEXRGBHSLCMYKNearest named color
#212855rgb(33, 40, 85)hsl(232, 44%, 23%)61, 53, 0, 67≈ Midnight Blue
#425BCErgb(66, 91, 206)hsl(229, 59%, 53%)68, 56, 0, 19≈ Royal Blue
#15B054rgb(21, 176, 84)hsl(144, 79%, 39%)88, 0, 52, 31≈ Medium Sea Green
#8CB4FFrgb(140, 180, 255)hsl(219, 100%, 77%)45, 29, 0, 0≈ Light Sky Blue

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 · #15B054
Button

Roles: background #212855, surface #212855, text #8CB4FF, primary #15B054, accent #425BCE (assigned automatically).

Contrast of the UI pairs

PairWCAG 2.x ratioAPCA LcResult
Body text on background6.73 : 1-57Pass (WCAG)
Text on a card6.73 : 1-57Pass (WCAG)
Button label4.92 : 145Pass (WCAG)
Heading on background4.92 : 1-44Pass (WCAG)
Link on a card4.92 : 1-44Pass (WCAG)
Accent badge on a card2.41 : 1-19Fail
Primary control on background4.92 : 1-44Pass (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: #212855;
  --royal-blue: #425BCE;
  --medium-sea-green: #15B054;
  --light-sky-blue: #8CB4FF;
}

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 Warm Blue & Medium Green 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 Warm Blue & Medium Green can I use for text?

#212855 text on #8CB4FF reaches 6.73 : 1, the strongest pair of the palette.

Similar palettes

Sources and licences

Updated November 21, 2026