A blue site with 25 colors in use, no framework found, all of its text at WCAG AA

The colors of ons.gov.uk

Recolor (recolor.page) read the home page of ons.gov.uk on October 8, 2026: its main color is #206095, a blue, and it paints 25 colors in 8 hue families out of 66 distinct values in its CSS, half of its text at 9.46:1 or better against what it sits on.

Measured

#206095Dark Slate Blue
#fbc900Gold
#a8bd3aYellow Green
#f5f5f6White Smoke
#222222Midnight Blue
From the colors of the web 2026 dataset (dataset.csv, rank 1470), measured on October 8, 2026 with scripts off; how it was measured
Measureons.gov.uk
Main color#206095, a blue near darkslateblue
Five heaviest colors#f5f5f6 #206095 #222222 #000000 #414042
Colors in use25, 14 more than a gray; 66 distinct values in the CSS
Hue families8; blue and yellow hold 5% or more of its color
Canvas#ffffff, light
Dark mode in the CSSNo
Notationshex codes 94%, rgb() 6.2%
Colors through var()0% of its color declarations; 0 variables hold a color
FrameworkNone the study looks for
Text contrastMedian 9.46:1; 0% of its text under 4.5:1
Page measuredhttps://www.ons.gov.uk/, 534.5 KB of CSS

The palette of ons.gov.uk

Taken the way Recolor's Use site colours takes a page's colors, ons.gov.uk gives the palette #206095, #fbc900, #a8bd3a, #f5f5f6 and #222222: the main color first, then its background and text color, black or white for colored text. The code below holds the palette; open ons.gov.uk in Recolor in its own colors or try another palette on ons.gov.uk.

CSS variables

CSS
:root {
  --color-1: #206095;
  --color-2: #fbc900;
  --color-3: #a8bd3a;
  --color-4: #f5f5f6;
  --color-5: #222222;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #206095;
  --color-2: #fbc900;
  --color-3: #a8bd3a;
  --color-4: #f5f5f6;
  --color-5: #222222;
  --color-primary: #206095;
  --color-secondary: #fbc900;
  --color-accent: #a8bd3a;
}

Text contrast on ons.gov.uk

All of the measured text on ons.gov.uk clears the AA lines of WCAG, 4.5:1 for body text and 3:1 for large text; the median is 9.46:1. On the average studied site 6% of the text fails. 29% of its text sits on a dark ground. More in Black or white text on a color.

How ons.gov.uk writes its colors

The 902 color values in its CSS are written as hex codes (94%) and rgb() (6.2%). Its color declarations write their colors directly, with no var().

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 ons.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 ons.gov.uk blue?

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

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

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

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

Yes. All of the text the study measured reaches 4.5:1 against what it sits on, or 3:1 where it is large; half of it reads at 9.46:1 or better.

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

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