A blue site with 28 colors in use, built with Bootstrap 3, all of its text at WCAG AA
The colors of census.gov
The main color of census.gov is #2b74b7, a blue, and its home page uses 28 colors, 16 of them more than a gray, in 5 hue families. Recolor (recolor.page) read the page on October 8, 2026 for the colors of the web study: 278 distinct color values in 2382.3 KB of CSS, half of its text at 12.63:1 or better against what it sits on.
Measured
| Measure | census.gov |
|---|---|
| Main color | #2b74b7, a blue near steelblue |
| Five heaviest colors | #ffffff #2b74b7 #333333 #e7eaed #131313 |
| Colors in use | 28, 16 more than a gray; 278 distinct values in the CSS |
| Hue families | 5; blue holds 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | Yes: prefers-color-scheme: dark |
| Notations | hex codes 96%, rgb() 3.3%, named colors 0.8%, hsl() under 0.1% |
Colors through var() | 0% of its color declarations; 0 variables hold a color |
| Framework | Bootstrap 3 |
| Text contrast | Median 12.63:1; 0% of its text under 4.5:1 |
| Page measured | https://www.census.gov/, 2382.3 KB of CSS |
The palette of census.gov
Recolor reads a page's colors as its Use site colours button does: each hue family's main color in rank order, then its background and text color, black or white for colored text, then grays. For census.gov that is #2b74b7, #7ad4e2, #ffbd2e, #ffffff and #333333. Open census.gov in Recolor in its own colors, or try another palette on census.gov.
CSS variables
:root {
--color-1: #2b74b7;
--color-2: #7ad4e2;
--color-3: #ffbd2e;
--color-4: #ffffff;
--color-5: #333333;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #2b74b7;
--color-2: #7ad4e2;
--color-3: #ffbd2e;
--color-4: #ffffff;
--color-5: #333333;
--color-primary: #2b74b7;
--color-secondary: #7ad4e2;
--color-accent: #ffbd2e;
}Text contrast on census.gov
Half of the text on census.gov reads at 12.63:1 or better against what it sits on, and all of it reaches WCAG AA: 4.5:1 for body text, 3:1 for large text. On the average studied site 6% of the text fails. 2.2% of its text sits on a dark ground. Black or white text on a color shows how such contrast is chosen.
How census.gov writes its colors
Its CSS writes 5,780 color values: 96% hex codes, 3.3% in rgb(), 0.8% named colors and under 0.1% in hsl(). None of its color declarations reads a CSS variable.
Its CSS carries Bootstrap's variables, version 3 (one of 130 Bootstrap sites). It declares a dark mode, through a prefers-color-scheme: dark media query, like 406 sites of the 1,000.
Sites with a similar main color
Other blue sites whose main color is about as light as census.gov's. All 490 are on the blue page, and colors that go with blue shows what they pair it with. census.gov is also listed under Bootstrap sites and sites with a dark mode.
Common questions
Is the main color of census.gov blue?
Yes. Its main color is #2b74b7, a blue near the CSS color steelblue, as on 49% of the 1,000 sites the study read.
Does census.gov use Tailwind CSS?
No. Its CSS carries none of Tailwind CSS's variables; the study found Bootstrap 3.
Is census.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 census.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 12.63:1 or better.
Can I see census.gov in another palette?
Yes. Load census.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
- The colors of the web 2026, Recolor recolor.page
- How the study was measured recolor.page
- dataset.csv, the row of rank 538 recolor.page
- census.gov, the page measured census.gov
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com