A blue site with 22 colors in use, built with Bootstrap, all of its text at WCAG AA

The colors of loc.gov

Recolor (recolor.page) read the home page of loc.gov on October 8, 2026: its main color is #0076ad, a blue, and it paints 22 colors in 4 hue families out of 154 distinct values in its CSS, half of its text at 18.73:1 or better against what it sits on.

Measured

#0076adSteel Blue
#f05129Orange Red
#00262dMidnight Blue
#121212Midnight Blue
#ffffffWhite
From the colors of the web 2026 dataset (dataset.csv, rank 203), measured on October 8, 2026 with scripts off; how it was measured
Measureloc.gov
Main color#0076ad, a blue near steelblue
Five heaviest colors#ffffff #121212 #000000 #0076ad #efefef
Colors in use22, 13 more than a gray; 154 distinct values in the CSS
Hue families4; blue and cyan hold 5% or more of its color
Canvas#ffffff, light
Dark mode in the CSSYes: a dark theme's class or attribute
Notationshex codes 89%, bare channels in a variable 5.5%, rgb() 3.1%, named colors 2%
Colors through var()72% of its color declarations; 172 variables hold a color
FrameworkBootstrap
Text contrastMedian 18.73:1; 0% of its text under 4.5:1
Page measuredhttps://www.loc.gov/, 1299.9 KB of CSS

The palette of loc.gov

Taken the way Recolor's Use site colours takes a page's colors, loc.gov gives the palette #0076ad, #f05129, #00262d, #121212 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 loc.gov in Recolor in its own colors or try another palette on loc.gov.

CSS variables

CSS
:root {
  --color-1: #0076ad;
  --color-2: #f05129;
  --color-3: #00262d;
  --color-4: #121212;
  --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: #0076ad;
  --color-2: #f05129;
  --color-3: #00262d;
  --color-4: #121212;
  --color-5: #ffffff;
  --color-primary: #0076ad;
  --color-secondary: #f05129;
  --color-accent: #00262d;
}

Text contrast on loc.gov

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

How loc.gov writes its colors

The 856 color values in its CSS are written as hex codes (89%), bare channels in a variable (5.5%), rgb() (3.1%) and named colors (2%). Through var(), 72% of its color declarations take their color from a CSS variable; 172 variables hold one.

By its variables, the study told Bootstrap's variables (one of 130 Bootstrap sites) in its CSS. Its CSS holds dark colors under a dark theme's class or attribute: a dark mode, as on 406 sites of the 1,000.

Sites with a similar main color

The blue sites nearest loc.gov in the lightness of their main color. The blue page lists all 490; colors that go with blue counts the hues beside it. loc.gov is also listed under Bootstrap sites and sites with a dark mode.

Common questions

Is the main color of loc.gov blue?

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

Does loc.gov use Tailwind CSS?

No. Its CSS carries none of Tailwind CSS's variables; the study found Bootstrap.

Is loc.gov a dark site?

No. The color behind its home page is #ffffff, a light canvas, though its CSS declares a dark mode for readers who ask for one.

Does the text on loc.gov 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 18.73:1 or better.

Can I see loc.gov in another palette?

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