A blue site with 23 colors in use, no framework found, 99.5% of its text at WCAG AA
The colors of justice.gov
The main color of justice.gov is #0064a8, a blue, and its home page uses 23 colors, 9 of them more than a gray, in 3 hue families. Recolor (recolor.page) read the page on October 8, 2026 for the colors of the web study: 105 distinct color values in 1268.5 KB of CSS, half of its text at 5.74:1 or better against what it sits on.
Measured
| Measure | justice.gov |
|---|---|
| Main color | #0064a8, a blue near royalblue |
| Five heaviest colors | #ffffff #000000 #2e2e2a #162e51 #d9e8f6 |
| Colors in use | 23, 9 more than a gray; 105 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 | No |
| Notations | hex codes 98%, rgb() 1.5%, named colors under 0.1% |
Colors through var() | under 0.1% of its color declarations; 0 variables hold a color |
| Framework | None the study looks for |
| Text contrast | Median 5.74:1; 0.5% of its text under 4.5:1 |
| Page measured | https://www.justice.gov/, 1268.5 KB of CSS |
The palette of justice.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 justice.gov that is #0064a8, #ffbe2e, #54278f, #ffffff and #666666. Open justice.gov in Recolor in its own colors, or try another palette on justice.gov.
CSS variables
:root {
--color-1: #0064a8;
--color-2: #ffbe2e;
--color-3: #54278f;
--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: #0064a8;
--color-2: #ffbe2e;
--color-3: #54278f;
--color-4: #ffffff;
--color-5: #666666;
--color-primary: #0064a8;
--color-secondary: #ffbe2e;
--color-accent: #54278f;
}Text contrast on justice.gov
Half of the text on justice.gov reads at 5.74:1 or better against what it sits on. 0.5% of it falls under 4.5:1, the WCAG AA line for body text, and 0.5% under 3:1, the line for large text; judged as AA judges each piece of text, 0.5% fails. On the average studied site 6% of the text fails. 24% of its text sits on a dark ground. Black or white text on a color shows how to fix a pair.
How justice.gov writes its colors
Its CSS writes 2,334 color values: 98% hex codes, 1.5% in rgb() and under 0.1% named colors. Under 0.1% of its color declarations read a CSS variable through var(), and it defines 0 variables that hold a color.
The study found none of the frameworks it looks for in its CSS: no Tailwind CSS, Bootstrap, WordPress or site builder variables. It declares no dark mode in its CSS, as 59% of the studied sites do not.
Sites with a similar main color
Other blue sites whose main color is about as light as justice.gov's. All 490 are on the blue page, and colors that go with blue shows what they pair it with.
Common questions
Is the main color of justice.gov blue?
Yes. Its main color is #0064a8, a blue near the CSS color royalblue, as on 49% of the 1,000 sites the study read.
Does justice.gov use Tailwind CSS?
No. Its CSS carries none of Tailwind CSS's variables, nor those of another framework the study looks for.
Is justice.gov a dark site?
No. The color behind its home page is #ffffff, a light canvas.
Does the text on justice.gov pass WCAG AA?
No. 0.5% of its text fails AA, though half of it reads at 5.74:1 or better.
Can I see justice.gov in another palette?
Yes. Load justice.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 518 recolor.page
- justice.gov, the page measured justice.gov
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com