SiteStyleGuide

Unofficial A style guide made by SiteStyleGuide from xkcd.com’s public web pages. Not affiliated with or endorsed by xkcd. The real site is xkcd.com ↗

xkcd logo

Unofficial style guide

xkcdstyle guide

xkcd’s website (xkcd.com) uses Lucida for its headings and body text. Its palette is led by Light Steel Blue (#96A8C8) and Slate Grey (#6E7B91), with #282B30 text on #96A8C8. Captured from the live site on 30 October 2026.

Website
xkcd.com
Typefaces
Lucida
Palette
4 neutrals, 2 colours
Captured
30 Oct 2026 · added by @sitestyleguide
https://xkcd.com/ Screenshot
Screenshot of the xkcd.com homepage on a desktop screen
Screenshot of xkcd.com on a 1440 px desktop screen, 30 Oct 2026.

Identity & metadata

What browsers, search engines and social cards show before anyone reaches the page, from the homepage’s <head>.

Title &
description

Page title
xkcd: Gravitational Square Wave
● 31 / 60 characters
Meta description
Missing
▲ 0 / 160 characters
Site name
xkcd
og:title
Gravitational Square Wave

In search results

xkcdhttps://xkcd.com/

xkcd: Gravitational Square Wave

When shared

The image xkcd shares with links

xkcd.com

Gravitational Square Wave

Back to top ↑

Colour

Read from the site’s stylesheets and weighted by where each colour is used. Names are the nearest standard colour name. Click a swatch to copy its hex code.

Contrast is against the site’s text colour (#282B30) and white, using WCAG 2 ratios: 4.5 for body text, 3 for large text.

Colour

Balance

How much each colour is used
  • Light Steel Blue 51.4%
  • White 21.1%
  • Slate Grey 12.8%
  • Cool Charcoal 7.3%
  • Cool Near Black 3.7%
  • Charcoal 3.7%

By how often each colour appears in the site’s CSS, weighted by where (body, headings, buttons), not by area on the screen.

Neutrals

Text, backgrounds and structure
  • White

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 0
    On text
    14.20:1 AAA
    On white
    —

    Background, text · .box, ul.comicNav li a

  • Cool Charcoal

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    17 10 0 81
    On text
    —
    On white
    14.20:1 AAA

    Text · #topLeft a

  • Cool Near Black

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    72 20 0 90
    On text
    1.32:1 Fail
    On white
    18.70:1 AAA

    Border · .box

  • Charcoal

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 80
    On text
    1.12:1 Fail
    On white
    12.63:1 AAA

    Border · ul.comicNav li a

Colours

Brand colours and accents, most used first
  • Light Steel Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    25 16 0 22
    On text
    5.91:1 AA
    On white
    2.40:1 Fail

    Background, text · body, a

  • Slate Grey

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    24 15 0 43
    On text
    3.32:1 AA large
    On white
    4.28:1 AA large

    Background, text · ul.comicNav li a, ul.comicNav a:hover

Back to top ↑

Typography

Faces from Google Fonts are shown in the real thing. Others are licensed to the site, so they show in your device’s copy if you have one, or a stand-in if not.

Lucida

Aa 500

Lucida

System font, or not loaded on this page · weights 500 · body · shown in a stand-in if you don’t have it

ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789 ! ? & @ % $ – ’ “ ”

Type scale

From the site’s CSS
Body 16px weight 500 · Lucida

The quick brown fox jumps over the lazy dog.

Link 16px weight 600

Read more about xkcd

Sizes in use

Most common across the site
  • 21px2 rules
  • 20pxline 120% · 1 rules
  • 16px2 rules
  • 12px1 rules

Back to top ↑

Elements

The main button and link as the site’s CSS draws them, and the corner radii and shadows it uses most.

Elements

Link

Read our latest news today.

a · #96A8C8

Corner radius

  • 12px · 1×
  • 3px · 1×

Shadows

  • 0 0 5px 0 gray

Back to top ↑

Layout

Breakpoints from the site’s media queries and the widths its content is held to, with how often each appears.

Grid

No breakpoints or content widths could be read.

Back to top ↑

Notes

Plain checks on what was found. Worth fixing if you look after this site.

Notes

  • ● FineThe title is 31 characters, short enough to show in full in search results.
  • ▲ CheckThere is no meta description, so search engines will pick text from the page.
  • ▲ CheckThe page doesn’t declare its language (the lang attribute on <html>).

Back to top ↑

Questions

Quick answers, from the same capture as the rest of this guide.

Questions

What font does xkcd use?
xkcd’s website uses one typeface: Lucida (headings and body text), a system font.
What are xkcd’s brand colours?
The main colours on xkcd.com are Light Steel Blue (#96A8C8), Slate Grey (#6E7B91), White (#FFFFFF), Cool Charcoal (#282B30), Cool Near Black (#071419) and Charcoal (#333333).
What colour is xkcd’s text and background?
Body text is #282B30 on a #96A8C8 background.
Where is xkcd’s logo from?
The logo shown in this guide was found on xkcd.com’s homepage. For official logo files and usage rules, check xkcd’s own brand or press page.
Is this xkcd’s official style guide?
No. SiteStyleGuide made it from xkcd.com’s public web pages on 30 October 2026, and isn’t affiliated with xkcd. Members can refresh a guide after 90 days to pick up changes.

Back to top ↑

Design tokens

Everything above as CSS variables, ready to paste into a project. Members can download the tokens as files for Figma (Tokens Studio), Style Dictionary and Tailwind.

Tokens

xkcd-com-tokens.css

Download

Free with an account: sign up or sign in, and you’ll come straight back here.

/* xkcd.com design tokens, from SiteStyleGuide (https://sitestyleguide.com/xkcd.com) */
:root {
  /* Colours */
  --text: #282B30;
  --background: #96A8C8;
  --colour-white: #FFFFFF;
  --colour-cool-charcoal: #282B30;
  --colour-cool-near-black: #071419;
  --colour-charcoal: #333333;
  --colour-light-steel-blue: #96A8C8;
  --colour-slate-grey: #6E7B91;

  /* Typefaces */
  --font-body: 'Lucida', 'Helvetica', sans-serif;

  /* Type scale */
  --text-body: 16px;
  --text-a: 16px;

  /* Shape */
  --radius-1: 12px;
  --radius-2: 3px;
}

Back to top ↑

Share

Links open each service’s own share page. Nothing from them loads here.

Share

Run xkcd.com?

Add the badge to your site

Link to this guide from your own site, so your team, designers and agencies can find your colours and fonts in one place.

View our style guide on SiteStyleGuide
<a href="https://sitestyleguide.com/xkcd.com" title="xkcd style guide on SiteStyleGuide"><img src="https://sitestyleguide.com/public/badge.svg" alt="View our style guide on SiteStyleGuide" width="200" height="44"></a>

Back to top ↑

Websites whose lead colour is closest to xkcd’s

Captured from xkcd.com on 30 October 2026. SiteStyleGuide isn’t affiliated with or endorsed by xkcd; this guide describes the public website for reference.