A blue site with 24 colors in use, built with WordPress, 99% of its text at WCAG AA
The colors of state.gov
Recolor (recolor.page) read the home page of state.gov on October 8, 2026: its main color is #0a314d, a blue, and it paints 24 colors in 3 hue families out of 189 distinct values in its CSS, half of its text at 13.47:1 or better against what it sits on.
Measured
| Measure | state.gov |
|---|---|
| Main color | #0a314d, a blue near midnightblue |
| Five heaviest colors | #ffffff #0a314d #062135 #4574a1 #8d98aa |
| Colors in use | 24, 11 more than a gray; 189 distinct values in the CSS |
| Hue families | 3; blue and yellow hold 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | Yes: a dark theme's class or attribute |
| Notations | hex codes 91%, rgb() 8.4%, named colors under 0.1%, hsl() under 0.1% |
Colors through var() | 2.8% of its color declarations; 50 variables hold a color |
| Framework | WordPress |
| Text contrast | Median 13.47:1; 1% of its text under 4.5:1 |
| Page measured | https://www.state.gov/, 1629.8 KB of CSS |
The palette of state.gov
Taken the way Recolor's Use site colours takes a page's colors, state.gov gives the palette #0a314d, #ff0000, #c1a783, #ffffff and #666666: the main color first, then its background and text color, black or white for colored text. The code below holds the palette; open state.gov in Recolor in its own colors or try another palette on state.gov.
CSS variables
:root {
--color-1: #0a314d;
--color-2: #ff0000;
--color-3: #c1a783;
--color-4: #ffffff;
--color-5: #666666;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #0a314d;
--color-2: #ff0000;
--color-3: #c1a783;
--color-4: #ffffff;
--color-5: #666666;
--color-primary: #0a314d;
--color-secondary: #ff0000;
--color-accent: #c1a783;
}Text contrast on state.gov
The median contrast of the text on state.gov is 13.47:1, and 1% of it fails WCAG AA: 1% is under 4.5:1 and 1% under 3:1. On the average studied site 6% of the text fails. 50% of its text sits on a dark ground. To pick a readable ink for a background, see Black or white text on a color.
How state.gov writes its colors
Its CSS writes 3,315 color values: 91% hex codes, 8.4% in rgb(), under 0.1% named colors and under 0.1% in hsl(). 2.8% of its color declarations read a CSS variable through var(), and it defines 50 variables that hold a color.
Its CSS carries WordPress's color presets. 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 state.gov's. All 490 are on the blue page, and colors that go with blue shows what they pair it with. state.gov is also listed under sites with a dark mode.
Common questions
Is the main color of state.gov blue?
Yes. Its main color is #0a314d, a blue near the CSS color midnightblue, as on 49% of the 1,000 sites the study read.
Does state.gov use Tailwind CSS?
No. Its CSS carries none of Tailwind CSS's variables; the study found WordPress.
Is state.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 state.gov pass WCAG AA?
No. 1% of its text fails AA, though half of it reads at 13.47:1 or better.
Can I see state.gov in another palette?
Yes. Load state.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 312 recolor.page
- state.gov, the page measured state.gov
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com