SiteStyleGuide

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

W3Schools logo

Unofficial style guide

W3Schoolsstyle guide

W3Schools’s website (w3schools.com) uses Source Sans Pro for its headings and body text. Its palette is led by Deep Sea Green (#04AA6D), Black (#0F172A) and Slate Grey (#64748B), with #000000 text on #FFFFFF. Captured from the live site on 30 October 2026.

Typefaces
Source Sans Pro, Source Sans Pro Topnav, W3HomeSSans
Palette
4 neutrals, 12 colours, 3 gradients
Captured
30 Oct 2026 · added by @sitestyleguide
https://www.w3schools.com/ Screenshot
Screenshot of the w3schools.com homepage on a desktop screen
Screenshot of w3schools.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
W3Schools Online Web Tutorials
● 30 / 60 characters
Meta description
Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML and more.
▲ 168 / 160 characters
Site name
W3Schools
og:title
W3Schools.com
og:description
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Language
en-US
Theme colour
#ffffff

In search results

W3Schoolshttps://www.w3schools.com/

W3Schools Online Web Tutorials

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, Bootstrap, Java, XML an…

When shared

The image W3Schools shares with links

w3schools.com

W3Schools.com

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Cover…

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 (#000000) and white, using WCAG 2 ratios: 4.5 for body text, 3 for large text.

Colour

Balance

How much each colour is used
  • White 36.7%
  • Black 13%
  • Deep Sea Green 12.4%
  • Black 7.7%
  • Cool Charcoal 7.1%
  • Off White 6.5%
  • Slate Grey 2.5%
  • Khaki 2.5%
  • Medium Blue 2.5%
  • Medium Violet Red 2.5%
  • Sea Green 1.4%
  • Brown 1.2%
  • Medium Purple 1.2%
  • Deep Red 0.9%
  • Light Sea Green 0.9%
  • Light Red 0.9%

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
    21.00:1 AAA
    On white
    —

    Background, text, border · .w3s-my-learning.-side-nav-modal#w3s-myl-save-progress-info-modal > .-body > .-i, body

  • Black

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

    Text, background, border · inline style on <span>, html

  • Cool Charcoal

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    25 21 0 79
    On text
    1.47:1 Fail
    On white
    14.26:1 AAA

    Background, text, border · .homepage-refresh .edtabs button.on, #top-nav-bar #nav_services h4

  • Off White

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 0 0 13
    On text
    15.46:1 AAA
    On white
    1.36:1 Fail

    Background, text, border · .grey-color, .w3-example-tab-header

Colours

Brand colours and accents, most used first
  • Deep Sea Green

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    98 0 36 33
    On text
    6.98:1 AA
    On white
    3.01:1 AA large

    Background, text, border · .w3s-my-learning.-side-nav-modal#w3s-myl-save-progress-info-modal > .-body > .-i, a.btnsmall

  • Black

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    64 45 0 84
    On text
    1.18:1 Fail
    On white
    17.85:1 AAA

    Text · #top-nav-bar .tnb-right-section .tnb-adventure-badge-title, #nav_tutorials .tutnav-main-title

  • Slate Grey

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    28 17 0 45
    On text
    4.41:1 AA large
    On white
    4.76:1 AA

    Text · #nav_exercises .exnav-subtitle, #nav_exercises .exnav-quick-actions-title

  • Khaki

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 4 36 0
    On text
    18.72:1 AAA
    On white
    1.12:1 Fail

    Text, background · .w3s-pathfinder.-teaser > .-inner-wrapper > .-main-section > .-inner-wrapper > ., #nav_tutorials h3

  • Medium Blue

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    100 100 0 20
    On text
    1.88:1 Fail
    On white
    11.16:1 AAA

    Text · inline style on <span>, .kotlinkeywordcolor

  • Medium Violet Red

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 100 44 40
    On text
    2.49:1 Fail
    On white
    8.45:1 AAA

    Text · inline style on <span>, .tagnamecolor

  • Sea Green

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    97 0 36 40
    On text
    5.67:1 AA
    On white
    3.70:1 AA large

    Background, border, text · form.example button:hover, --primary-dark

  • Brown

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 75 75 35
    On text
    2.96:1 Fail
    On white
    7.08:1 AAA

    Text · inline style on <span>, .kotlinstringcolor

  • Medium Purple

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    39 60 0 4
    On text
    5.43:1 AA
    On white
    3.87:1 AA large

    Background, text, graphic · #top-nav-bar .tnb-right-section .tnb-certificates-btn, #top-nav-bar .tnb-right-section .tnb-upgrade-btn

  • Deep Red

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 91 100 10
    On text
    4.43:1 AA large
    On white
    4.74:1 AA

    Text, background, graphic · #tnb-login-dropdown-loginForm .tnb-login-dropdown-form-container #tnb-verificati, .w3-danger

  • Light Sea Green

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    57 0 54 31
    On text
    7.56:1 AAA
    On white
    2.78:1 Fail

    Background, text, border · .loginmodaldiv button, td.gsc-search-button input.gsc-search-button

  • Light Red

    HEX
    RGB
    HSL
    OKLCH
    CMYK
    0 100 100 0
    On text
    5.25:1 AA
    On white
    4.00:1 AA large

    Text, background · inline style on <span>, .w3s-pathfinder .-btn.-variant-6::before

Gradients

  • radial-gradient(58% 46% at 50% 0%,#E9F6F0 0%,rgba(255,255,255,0) 72%)

  • radial-gradient(circle at 58.04px 56.96px, rgba(55, 166, 106, 0.33) 0%, rgba(57, 107, 154, 0.05) 100%)

  • linear-gradient(135deg,#EAF3FD 0%, 100%)

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.

Source Sans Pro

Aa 400 Aa 700

Source Sans Pro

Self-hosted · weights 400, 600, 700 · headings, buttons · shown in a stand-in if you don’t have it

Aa 400 Aa 800

Source Sans Pro Topnav

Self-hosted · weights 400, 700, 800 · headings · shown in a stand-in if you don’t have it

Aa 400 Aa 700

W3HomeSSans

Self-hosted · weights 400, 600, 700 · headings · shown in a stand-in if you don’t have it

Aa 400 Aa 700

W3HomeSMono

Self-hosted · weights 400, 700 · buttons · shown in a stand-in if you don’t have it

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

Type scale

From the site’s CSS
Heading 1 80px weight 400 · Source Sans Pro

W3Schools

Heading 2 32px weight 400 · Source Sans Pro

W3Schools Online Web Tutorials

Heading 3 24px weight 400 · Source Sans Pro

W3Schools Online Web Tutorials

Heading 4 20px weight 400 · Source Sans Pro

W3Schools Online Web Tutorials

Heading 5 18px weight 400 · Source Sans Pro

W3Schools Online Web Tutorials

Heading 6 16px weight 400 · Source Sans Pro

W3Schools Online Web Tutorials

Body 16px / 1.5 Segoe UI

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, B…

Paragraph 13.5px / 1.5 Source Sans Pro

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, Python, PHP, B…

Button 11px / 1 weight 700 · W3HomeSMono

Get started

Link 13px / normal weight 600 · W3HomeSSans

Read more about W3Schools

Sizes in use

Most common across the site
  • 20pxline 1.2 · 16 rules
  • 18pxline 1 · 32 rules
  • 17pxline 22px · 27 rules
  • 16pxline 1.5 · 38 rules
  • 15pxline 1.5 · 46 rules
  • 14pxline 1.5 · 78 rules
  • 13pxline 1.6 · 45 rules
  • 12pxline normal · 34 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

Button

Get started

.loginmodaldiv button · #4CAF50 · radius 5px

Corner radius

  • 5px · 49×
  • 8px · 36×
  • 50% · 36×
  • 6px · 18×
  • 25px · 18×
  • 10px · 14×

Shadows

  • 0 2px 8px rgba(4, 170, 109, 0.12)
  • 0 8px 40px rgba(0, 0, 0, 0.18)
  • 0 2px 8px rgba(0, 0, 0, 0.1)
  • 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12)

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

Breakpoints

399
500
520
600
688
768
992
1280

On a scale of 0 to 1440 px.

Content widths (max-width)

1750 px
1100 px
990 px
640 px
520 px
420 px

Back to top ↑

Notes

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

Notes

  • ● FineThe title is 30 characters, short enough to show in full in search results.
  • ▲ CheckThe description is 168 characters. Search results usually show about 160.

Back to top ↑

Questions

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

Questions

What font does W3Schools use?
W3Schools’s website uses four typefaces: Source Sans Pro (headings and body text), self-hosted; Source Sans Pro Topnav, self-hosted; W3HomeSSans, self-hosted; W3HomeSMono, self-hosted.
What are W3Schools’s brand colours?
The main colours on w3schools.com are Deep Sea Green (#04AA6D), Black (#0F172A), Slate Grey (#64748B), Khaki (#FFF4A3), Medium Blue (#0000CD) and Medium Violet Red (#990055).
What colour is W3Schools’s text and background?
Body text is #000000 on a #FFFFFF background.
Where is W3Schools’s logo from?
The logo shown in this guide was found on w3schools.com’s homepage. For official logo files and usage rules, check W3Schools’s own brand or press page.
Is this W3Schools’s official style guide?
No. SiteStyleGuide made it from w3schools.com’s public web pages on 30 October 2026, and isn’t affiliated with W3Schools. 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

w3schools-com-tokens.css

Download

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

/* w3schools.com design tokens, from SiteStyleGuide (https://sitestyleguide.com/w3schools.com) */
:root {
  /* Colours */
  --text: #000000;
  --background: #FFFFFF;
  --colour-white: #FFFFFF;
  --colour-black: #000000;
  --colour-cool-charcoal: #282A35;
  --colour-off-white: #DDDDDD;
  --colour-deep-sea-green: #04AA6D;
  --colour-black-2: #0F172A;
  --colour-slate-grey: #64748B;
  --colour-khaki: #FFF4A3;
  --colour-medium-blue: #0000CD;
  --colour-medium-violet-red: #990055;
  --colour-sea-green: #059862;
  --colour-brown: #A52A2A;
  --colour-medium-purple: #9763F6;
  --colour-deep-red: #E51400;
  --colour-light-sea-green: #4CAF50;
  --colour-light-red: #FF0000;
  --gradient-1: radial-gradient(58% 46% at 50% 0%,#E9F6F0 0%,rgba(255,255,255,0) 72%);
  --gradient-2: radial-gradient(circle at 58.04px 56.96px, rgba(55, 166, 106, 0.33) 0%, rgba(57, 107, 154, 0.05) 100%);
  --gradient-3: linear-gradient(135deg,#EAF3FD 0%, 100%);

  /* Typefaces */
  --font-headings: 'Source Sans Pro', sans-serif;
  --font-buttons: 'Source Sans Pro', sans-serif;
  --font-other: 'Source Code Pro', 'Menlo', 'Consolas', monospace;

  /* Type scale */
  --text-h1: 80px;
  --text-h2: 32px;
  --text-h3: 24px;
  --text-h4: 20px;
  --text-h5: 18px;
  --text-h6: 16px;
  --text-body: 16px;
  --leading-body: 1.5;
  --text-p: 13.5px;
  --leading-p: 1.5;
  --text-button: 11px;
  --leading-button: 1;
  --text-a: 13px;
  --leading-a: normal;

  /* Shape */
  --radius-1: 5px;
  --radius-2: 8px;
  --radius-3: 50%;
  --radius-4: 6px;
  --radius-5: 25px;
  --radius-6: 10px;

  /* Layout (breakpoints can’t be used in media queries as variables; they’re here for reference) */
  --breakpoint-1: 399px;
  --breakpoint-2: 500px;
  --breakpoint-3: 520px;
  --breakpoint-4: 600px;
  --breakpoint-5: 688px;
  --breakpoint-6: 768px;
  --breakpoint-7: 992px;
  --breakpoint-8: 1280px;
  --max-width-1: 1750px;
  --max-width-2: 1100px;
  --max-width-3: 990px;
  --max-width-4: 640px;
  --max-width-5: 520px;
  --max-width-6: 420px;
}

Back to top ↑

Share

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

Share

Run w3schools.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/w3schools.com" title="W3Schools 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 ↑

Other websites using Source Sans Pro as their main typeface
Websites whose lead colour is closest to W3Schools’s

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