A blue site with 19 colors in use, no framework found, 80% of its text at WCAG AA
The colors of legislation.gov.uk
On legislation.gov.uk, #006699 leads: a blue main color among 19 colors in use, 7 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 149 distinct color values in 280.3 KB of CSS, half of its text at 5.5:1 or better against what it sits on.
Measured
| Measure | legislation.gov.uk |
|---|---|
| Main color | #006699, a blue near teal |
| Five heaviest colors | #ffffff #006699 #1e1e1e #494949 #02385a |
| Colors in use | 19, 7 more than a gray; 149 distinct values in the CSS |
| Hue families | 3; blue holds 5% or more of its color |
| Canvas | #ffffff, light |
| Dark mode in the CSS | No |
| Notations | hex codes 56%, rgb() 43%, named colors 0.7% |
Colors through var() | 0% of its color declarations; 0 variables hold a color |
| Framework | None the study looks for |
| Text contrast | Median 5.5:1; 20% of its text under 4.5:1 |
| Page measured | https://www.legislation.gov.uk/, 280.3 KB of CSS |
The palette of legislation.gov.uk
As a palette, legislation.gov.uk is #006699, #e00000, #fff36f, #ffffff and #1e1e1e: 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 legislation.gov.uk 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: #006699;
--color-2: #e00000;
--color-3: #fff36f;
--color-4: #ffffff;
--color-5: #1e1e1e;
--color-primary: var(--color-1);
--color-secondary: var(--color-2);
--color-accent: var(--color-3);
}Tailwind v4 @theme
@theme {
--color-1: #006699;
--color-2: #e00000;
--color-3: #fff36f;
--color-4: #ffffff;
--color-5: #1e1e1e;
--color-primary: #006699;
--color-secondary: #e00000;
--color-accent: #fff36f;
}Text contrast on legislation.gov.uk
On legislation.gov.uk, 20% of the text fails WCAG AA once large text is judged at 3:1 and the rest at 4.5:1. 20% reads under 4.5:1 and 20% under 3:1, while half of it reaches 5.5:1. On the average studied site 6% of the text fails. 8.4% of its text sits on a dark ground. Black or white text on a color explains the lines.
How legislation.gov.uk writes its colors
Its CSS writes 580 color values: 56% hex codes, 43% in rgb() and 0.7% named colors. None of its color declarations reads a CSS variable.
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 legislation.gov.uk'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 legislation.gov.uk blue?
Yes. Its main color is #006699, a blue near the CSS color teal, as on 49% of the 1,000 sites the study read.
Does legislation.gov.uk use Tailwind CSS?
No. Its CSS carries none of Tailwind CSS's variables, nor those of another framework the study looks for.
Is legislation.gov.uk a dark site?
No. The color behind its home page is #ffffff, a light canvas.
Does the text on legislation.gov.uk pass WCAG AA?
No. 20% of its text fails AA, though half of it reads at 5.5:1 or better.
Can I see legislation.gov.uk in another palette?
Yes. Load legislation.gov.uk 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 988 recolor.page
- legislation.gov.uk, the page measured legislation.gov.uk
- Majestic Million, CC BY 3.0, attribution "Majestic" majestic.com