A blue site with 17 colors in use, no framework found, 99.6% of its text at WCAG AA

The colors of www.gov.uk

On www.gov.uk, #1a65a6 leads: a blue main color among 17 colors in use, 12 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 68 distinct color values in 400.2 KB of CSS, half of its text at 6.08:1 or better against what it sits on.

Measured

#1a65a6Steel Blue
#ffdd00Gold
#54319fRebecca Purple
#ffffffWhite
#0b0c0cBlack
From the colors of the web 2026 dataset (dataset.csv, rank 138), measured on October 8, 2026 with scripts off; how it was measured
Measurewww.gov.uk
Main color#1a65a6, a blue near steelblue
Five heaviest colors#ffffff #0b0c0c #1a65a6 #ffdd00 #000000
Colors in use17, 12 more than a gray; 68 distinct values in the CSS
Hue families5; blue, yellow and violet hold 5% or more of its color
Canvas#f4f8fb, light
Dark mode in the CSSNo
Notationshex codes 91%, rgb() 9.3%
Colors through var()57% of its color declarations; 51 variables hold a color
FrameworkNone the study looks for
Text contrastMedian 6.08:1; 0.8% of its text under 4.5:1
Page measuredhttps://www.gov.uk/, 400.2 KB of CSS

The palette of www.gov.uk

As a palette, www.gov.uk is #1a65a6, #ffdd00, #54319f, #ffffff and #0b0c0c: 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 www.gov.uk in Recolor in its own colors and press Space to see it in others, or start from a new palette.

CSS variables

CSS
:root {
  --color-1: #1a65a6;
  --color-2: #ffdd00;
  --color-3: #54319f;
  --color-4: #ffffff;
  --color-5: #0b0c0c;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #1a65a6;
  --color-2: #ffdd00;
  --color-3: #54319f;
  --color-4: #ffffff;
  --color-5: #0b0c0c;
  --color-primary: #1a65a6;
  --color-secondary: #ffdd00;
  --color-accent: #54319f;
}

Text contrast on www.gov.uk

On www.gov.uk, 0.4% of the text fails WCAG AA once large text is judged at 3:1 and the rest at 4.5:1. 0.8% reads under 4.5:1 and 0% under 3:1, while half of it reaches 6.08:1. On the average studied site 6% of the text fails. 2.7% of its text sits on a dark ground. Black or white text on a color explains the lines.

How www.gov.uk writes its colors

The 1,216 color values in its CSS are written as hex codes (91%) and rgb() (9.3%). Through var(), 57% of its color declarations take their color from a CSS variable; 51 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 www.gov.uk 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 www.gov.uk blue?

Yes. Its main color is #1a65a6, a blue near the CSS color steelblue, as on 49% of the 1,000 sites the study read.

Does www.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 www.gov.uk a dark site?

No. The color behind its home page is #f4f8fb, a light canvas.

Does the text on www.gov.uk pass WCAG AA?

No. 0.4% of its text fails AA, though half of it reads at 6.08:1 or better.

Can I see www.gov.uk in another palette?

Yes. Load www.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