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

The colors of nyc.gov

Recolor (recolor.page) read the home page of nyc.gov on October 8, 2026: its main color is #051adb, a blue, and it paints 19 colors in 4 hue families out of 85 distinct values in its CSS, half of its text at 18.5:1 or better against what it sits on.

Measured

#051adbMedium Blue
#ffecd9Antique White
#e2f3ffAlice Blue
#000000Black
#ffffffWhite
From the colors of the web 2026 dataset (dataset.csv, rank 904), measured on October 8, 2026 with scripts off; how it was measured
Measurenyc.gov
Main color#051adb, a blue near mediumblue
Five heaviest colors#000000 #ffffff #051adb #103fef #e2f3ff
Colors in use19, 10 more than a gray; 85 distinct values in the CSS
Hue families4; blue and yellow hold 5% or more of its color
Canvas#ffffff, light
Dark mode in the CSSNo
Notationshex codes 84%, rgb() 10%, hsl() 4.8%, named colors 0.5%
Colors through var()79% of its color declarations; 144 variables hold a color
FrameworkNone the study looks for
Text contrastMedian 18.5:1; 13% of its text under 4.5:1
Page measuredhttps://www.nyc.gov/main, 396.2 KB of CSS

The palette of nyc.gov

Taken the way Recolor's Use site colours takes a page's colors, nyc.gov gives the palette #051adb, #ffecd9, #e2f3ff, #000000 and #ffffff: the main color first, then its background and text color, black or white for colored text. The code below holds the palette; open nyc.gov in Recolor in its own colors or try another palette on nyc.gov.

CSS variables

CSS
:root {
  --color-1: #051adb;
  --color-2: #ffecd9;
  --color-3: #e2f3ff;
  --color-4: #000000;
  --color-5: #ffffff;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #051adb;
  --color-2: #ffecd9;
  --color-3: #e2f3ff;
  --color-4: #000000;
  --color-5: #ffffff;
  --color-primary: #051adb;
  --color-secondary: #ffecd9;
  --color-accent: #e2f3ff;
}

Text contrast on nyc.gov

The median contrast of the text on nyc.gov is 18.5:1, and 13% of it fails WCAG AA: 13% is under 4.5:1 and 13% under 3:1. On the average studied site 6% of the text fails. 30% of its text sits on a dark ground. To pick a readable ink for a background, see Black or white text on a color.

How nyc.gov writes its colors

The 542 color values in its CSS are written as hex codes (84%), rgb() (10%), hsl() (4.8%) and named colors (0.5%). Through var(), 79% of its color declarations take their color from a CSS variable; 144 variables hold one. It also mixes colors with color-mix() 1 time.

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

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

Does nyc.gov use Tailwind CSS?

No. Its CSS carries none of Tailwind CSS's variables, nor those of another framework the study looks for.

Is nyc.gov a dark site?

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

Does the text on nyc.gov pass WCAG AA?

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

Can I see nyc.gov in another palette?

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