A blue site with 20 colors in use, no framework found, 99% of its text at WCAG AA
The colors of dhs.gov
On dhs.gov, #005288 leads: a blue main color among 20 colors in use, 11 of them more than a gray. Recolor (recolor.page) measured the home page on October 8, 2026 for its study of the colors of the web, reading 210 distinct color values in 977.5 KB of CSS, half of its text at 7.85:1 or better against what it sits on.
Measured
| Measure | dhs.gov |
|---|---|
| Main color | #005288, a blue near darkslateblue |
| Five heaviest colors | #005288 #ffffff #002231 #002b47 #edeeee |
| Colors in use | 20, 11 more than a gray; 210 distinct values in the CSS |
| Hue families | 4; blue holds 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | No |
| Notations | hex codes 97%, rgb() 1.6%, hsl() 1.2%, named colors 0.5%, bare channels in a variable under 0.1% |
Colors through var() | 9% of its color declarations; 90 variables hold a color |
| Framework | None the study looks for |
| Text contrast | Median 7.85:1; 2.7% of its text under 4.5:1 |
| Page measured | https://www.dhs.gov/, 977.5 KB of CSS |
The palette of dhs.gov
As a palette, dhs.gov is #005288, #54278f, #5e9732, #ffffff and #000000: its hue families' main colors first, in the order Recolor ranks them, then its background and text color (black or white for colored text), then its grays. Open dhs.gov in Recolor in its own colors and press Space to see it in others, or start from a new palette.
CSS variables
:root {
--color-1: #005288;
--color-2: #54278f;
--color-3: #5e9732;
--color-4: #ffffff;
--color-5: #000000;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #005288;
--color-2: #54278f;
--color-3: #5e9732;
--color-4: #ffffff;
--color-5: #000000;
--color-primary: #005288;
--color-secondary: #54278f;
--color-accent: #5e9732;
}Text contrast on dhs.gov
On dhs.gov, 1.1% of the text fails WCAG AA once large text is judged at 3:1 and the rest at 4.5:1. 2.7% reads under 4.5:1 and 0.6% under 3:1, while half of it reaches 7.85:1. On the average studied site 6% of the text fails. Most of its text, 94%, sits on a dark ground. Black or white text on a color explains the lines.
How dhs.gov writes its colors
The 2,215 color values in its CSS are written as hex codes (97%), rgb() (1.6%), hsl() (1.2%), named colors (0.5%) and bare channels in a variable (under 0.1%). Through var(), 9% of its color declarations take their color from a CSS variable; 90 variables hold one.
No framework the study knows by its variables shows in its CSS, neither Tailwind CSS and Bootstrap nor a site builder's. No dark mode shows in its CSS; 41% of the studied sites declare one.
Sites with a similar main color
The blue sites nearest dhs.gov in the lightness of their main color. The blue page lists all 490; colors that go with blue counts the hues beside it.
Common questions
Is the main color of dhs.gov blue?
Yes. Its main color is #005288, a blue near the CSS color darkslateblue, as on 49% of the 1,000 sites the study read.
Does dhs.gov use Tailwind CSS?
No. Its CSS carries none of Tailwind CSS's variables, nor those of another framework the study looks for.
Is dhs.gov a dark site?
No. The color behind its home page is #ffffff, a light canvas.
Does the text on dhs.gov pass WCAG AA?
No. 1.1% of its text fails AA, though half of it reads at 7.85:1 or better.
Can I see dhs.gov in another palette?
Yes. Load dhs.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 795 recolor.page
- dhs.gov, the page measured dhs.gov
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com