A blue site with 23 colors in use, built with Bootstrap, all of its text at WCAG AA

The colors of cdc.gov

Recolor (recolor.page) read the home page of cdc.gov on October 8, 2026: its main color is #005ea2, a blue, and it paints 23 colors in 4 hue families out of 170 distinct values in its CSS, half of its text at 6.72:1 or better against what it sits on.

Measured

#005ea2Dark Slate Blue
#0081a1Steel Blue
#672363Purple
#ffffffWhite
#1c1d1fMidnight Blue
From the colors of the web 2026 dataset (dataset.csv, rank 121), measured on October 8, 2026 with scripts off; how it was measured
Measurecdc.gov
Main color#005ea2, a blue near darkslateblue
Five heaviest colors#ffffff #005ea2 #0081a1 #004b88 #112f4e
Colors in use23, 14 more than a gray; 170 distinct values in the CSS
Hue families4; blue and cyan hold 5% or more of its color
Canvas#ffffff, light
Dark mode in the CSSYes: a dark theme's class or attribute
Notationshex codes 69%, rgb() 26%, bare channels in a variable 5%
Colors through var()72% of its color declarations; 208 variables hold a color
FrameworkBootstrap
Text contrastMedian 6.72:1; 0% of its text under 4.5:1
Page measuredhttps://www.cdc.gov/index.html, 338.4 KB of CSS

The palette of cdc.gov

Taken the way Recolor's Use site colours takes a page's colors, cdc.gov gives the palette #005ea2, #0081a1, #672363, #ffffff and #1c1d1f: the main color first, then its background and text color, black or white for colored text. The code below holds the palette; open cdc.gov in Recolor in its own colors or try another palette on cdc.gov.

CSS variables

CSS
:root {
  --color-1: #005ea2;
  --color-2: #0081a1;
  --color-3: #672363;
  --color-4: #ffffff;
  --color-5: #1c1d1f;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #005ea2;
  --color-2: #0081a1;
  --color-3: #672363;
  --color-4: #ffffff;
  --color-5: #1c1d1f;
  --color-primary: #005ea2;
  --color-secondary: #0081a1;
  --color-accent: #672363;
}

Text contrast on cdc.gov

All of the measured text on cdc.gov clears the AA lines of WCAG, 4.5:1 for body text and 3:1 for large text; the median is 6.72:1. On the average studied site 6% of the text fails. 21% of its text sits on a dark ground. More in Black or white text on a color.

How cdc.gov writes its colors

Its CSS writes 684 color values: 69% hex codes, 26% in rgb() and 5% bare channels in a variable. 72% of its color declarations read a CSS variable through var(), and it defines 208 variables that hold a color.

Its CSS carries Bootstrap's variables (one of 130 Bootstrap sites). It declares a dark mode, through a dark theme's class or attribute, like 406 sites of the 1,000.

Sites with a similar main color

Other blue sites whose main color is about as light as cdc.gov's. All 490 are on the blue page, and colors that go with blue shows what they pair it with. cdc.gov is also listed under Bootstrap sites and sites with a dark mode.

Common questions

Is the main color of cdc.gov blue?

Yes. Its main color is #005ea2, a blue near the CSS color darkslateblue, as on 49% of the 1,000 sites the study read.

Does cdc.gov use Tailwind CSS?

No. Its CSS carries none of Tailwind CSS's variables; the study found Bootstrap.

Is cdc.gov a dark site?

No. The color behind its home page is #ffffff, a light canvas, though its CSS declares a dark mode for readers who ask for one.

Does the text on cdc.gov pass WCAG AA?

Yes. All of the text the study measured reaches 4.5:1 against what it sits on, or 3:1 where it is large; half of it reads at 6.72:1 or better.

Can I see cdc.gov in another palette?

Yes. Load cdc.gov in Recolor and press Space: the page repaints in a new palette, live. Its own palette opens it close to how it looks.

Sources