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

The colors of xkcd.com

The main color of xkcd.com is #96a8c8, a blue, and its home page uses 6 colors, 2 of them more than a gray, in 2 hue families. Recolor (recolor.page) read the page on October 8, 2026 for the colors of the web study: 7 distinct color values in 3.5 KB of CSS, half of its text at 8.73:1 or better against what it sits on.

Measured

#96a8c8Dark Gray
#071419Midnight Blue
#ffffffWhite
#000000Black
#282b30Dark Slate Gray
From the colors of the web 2026 dataset (dataset.csv, rank 979), measured on October 8, 2026 with scripts off; how it was measured
Measurexkcd.com
Main color#96a8c8, a blue near darkgray
Five heaviest colors#96a8c8 #ffffff #282b30 #6e7b91 #808080
Colors in use6, 2 more than a gray; 7 distinct values in the CSS
Hue families2; blue and cyan hold 5% or more of its color
Canvas#96a8c8, mid
Dark mode in the CSSNo
Notationshex codes 69%, named colors 31%
Colors through var()0% of its color declarations; 0 variables hold a color
FrameworkNone the study looks for
Text contrastMedian 8.73:1; 43% of its text under 4.5:1
Page measuredhttps://xkcd.com/, 3.5 KB of CSS

The palette of xkcd.com

Recolor reads a page's colors as its Use site colours button does: each hue family's main color in rank order, then its background and text color, black or white for colored text, then grays. For xkcd.com that is #96a8c8, #071419, #ffffff, #000000 and #282b30. Open xkcd.com in Recolor in its own colors, or try another palette on xkcd.com.

CSS variables

CSS
:root {
  --color-1: #96a8c8;
  --color-2: #071419;
  --color-3: #ffffff;
  --color-4: #000000;
  --color-5: #282b30;
  --color-primary: var(--color-1);
  --color-secondary: var(--color-2);
  --color-accent: var(--color-3);
}

Tailwind v4 @theme

CSS
@theme {
  --color-1: #96a8c8;
  --color-2: #071419;
  --color-3: #ffffff;
  --color-4: #000000;
  --color-5: #282b30;
  --color-primary: #96a8c8;
  --color-secondary: #071419;
  --color-accent: #ffffff;
}

Text contrast on xkcd.com

Half of the text on xkcd.com reads at 8.73:1 or better against what it sits on. 43% of it falls under 4.5:1, the WCAG AA line for body text, and 39% under 3:1, the line for large text; judged as AA judges each piece of text, 43% fails. On the average studied site 6% of the text fails. None of its text sits on a dark ground. Black or white text on a color shows how to fix a pair.

How xkcd.com writes its colors

Its CSS writes 13 color values: 69% hex codes and 31% 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 xkcd.com'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 xkcd.com blue?

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

Does xkcd.com use Tailwind CSS?

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

Is xkcd.com a dark site?

No. The color behind its home page is #96a8c8, a mid-tone canvas.

Does the text on xkcd.com pass WCAG AA?

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

Can I see xkcd.com in another palette?

Yes. Load xkcd.com in Recolor and press Space: the page repaints in a new palette, live. Its own palette opens it close to how it looks.

Sources