Pairing 24 of 27

Blue and magenta color palette

A blue and magenta color palette: dark blue #0A1931 (Oxford by Night), blue #007FFF (Azure) and magenta #FF00FF. Below are the hex, RGB and HSL values, the WCAG contrast ratio for each pair, and the palette on example websites.

Passes WCAG AA for normal text (4.5:1): #0A1931 and #007FFF (4.58:1), #0A1931 and #FF00FF (5.59:1). Does not pass: #007FFF and #FF00FF (1.22:1).

Open in generator

Color values

ColorHexRGBHSLBest text on it
Oxford by Night#0A1931rgb(10 25 49)hsl(217 66% 12%)White, 17.55:1
Azure#007FFFrgb(0 127 255)hsl(210 100% 50%)Black, 5.47:1
Magenta#FF00FFrgb(255 0 255)hsl(300 100% 50%)Black, 6.69:1

Contrast ratios

WCAG 2 contrast between each pair of colors. Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text (18 pt, or 14 pt bold) and UI parts need 3:1 for AA.

PairRatioAA textAAA textAA largeUse
Oxford by Night and Azure4.58:1PassFailPassBody text
Oxford by Night and Magenta5.59:1PassFailPassBody text
Azure and Magenta1.22:1FailFailFailAccents only

How to use this palette

  • Oxford by Night and Magenta is the strongest pair at 5.59:1. It passes AA for body text but not AAA.
  • Keep Azure and Magenta (1.22:1) apart. Use them as neighboring fills or accents, never as text on a background.
  • Oxford by Night takes white text at 17.55:1; Azure takes black text at 5.47:1; Magenta takes black text at 6.69:1.
  • Lightness runs from 1157% (Oxford by Night) to 5000% (Magenta), a wide spread. Use Oxford by Night or Magenta as the page background and the other as text.
  • Azure is the most saturated (10000%) and very light, so it suits the accent: buttons, links and one-off highlights.

Preview on example websites

The same three colors on made-up sites. The first color is the base, the second supports it in panels and photos, and the third is the accent. Switch the template with the arrows, turn the accent off, or swap the roles.

Product launch