GOV.UK Brand Design System Deep-Dive
1. Brand Overview
GOV.UK is the digital front door for the UK government. It’s not trying to be trendy. It’s trying to be clear, consistent, and authoritative. The design language screams “official” without leaning into ornamental or decorative flourishes. Everything is stripped down to functional essentials.
The vibe: utilitarian clarity. This is a design system optimised for public service, not marketing gloss. You won’t find gradients or playful animations. You will find strong typographic hierarchy, harsh blacks, and high-contrast blues. It’s a system built to work for millions of people, across devices, and under accessibility scrutiny.
The design philosophy is rooted in the Government Digital Service (GDS) ethos: design for everyone, especially those with accessibility needs. The typography is custom — GDS Transport — designed to be legible at a distance and on screen. Colours are chosen for contrast, not aesthetic harmony alone. Buttons are rectangular, sharp-cornered, with no radius. Shadows are minimal and functional.
This is a system for clarity over brand personality. Where a commercial brand might spend pixels on delight, GOV.UK spends them on legibility and layout. That’s why the palette is mostly black, white, blue, and grey, with functional greens and yellows for states.
The audience is literally “everyone in the UK who needs to interact with government services,” which means the design must survive:
- Low bandwidth connections
- Assistive technologies
- Translation and localisation
- Long, technical content
This explains the minimalism: every extra visual flourish is a potential distraction or performance hit. They’ve opted for a design that’s as close to semantic HTML styling as possible, with clear affordances for interactive elements.
If you’re building on this system, understand this: it’s not about “selling” — it’s about “serving.” That mandate drives every design decision.
2. Color System
2.1 Primary Colors
The primary brand colour is #1d70b8 (rgb(29, 112, 184)) — a strong, medium blue. This is the link colour, the visual anchor for interactivity.
Why it works: Blue carries trust and authority in Western cultures. It’s also highly accessible against white and light grey backgrounds. Compared to commercial brands (think Facebook’s #1877f2 or Twitter’s #1da1f2), GOV.UK’s blue is slightly darker, improving contrast for WCAG compliance.
This blue is used for:
- Hyperlinks
- Certain borders (section accents)
- Active states in navigation
It’s not used for large backgrounds — instead, it’s an accent.
2.2 Complete Palette
| Color Name | Hex | Role | Usage |
|---|---|---|---|
| Black | #000000 | Text / UI | High-contrast text, borders |
| GOV.UK Black | #0b0c0c | Text / UI | Primary text colour, headings, labels |
| GOV.UK Blue | #1d70b8 | Primary | Links, accents, borders |
| White | #ffffff | Background / Text | Buttons, page background, text on dark backgrounds |
| GOV.UK Grey | #b1b4b6 | Neutral | Dividers, subtle borders |
| GOV.UK Green | #005a30 | Functional | Hover/focus states, success accents |
| GOV.UK Yellow | #ffdd00 | Functional / Focus | Focus rings, active indicators |
| GOV.UK Navy | #003078 | Functional | Hover/focus text colour |
| White (99% opacity) | #ffffff | Hover state text | Link hover states |
2.3 Color Relationships
Contrast is king here. Black (#0b0c0c) on white (#ffffff) is a 21:1 contrast ratio — perfect score for WCAG AAA. The blue (#1d70b8) on white is around 5.5:1 — passes AAA for normal text.
The yellow (#ffdd00) is tricky — it’s bright and high-visibility but low on contrast against white. That’s why it’s used for focus outlines with a black secondary outline: the combo is visually loud.
Dark mode? Not in play. This is a single-mode design system. If you needed to adapt it, you’d have to invert backgrounds and adjust blues to maintain accessibility.
2.4 Usage Guide
Works well:
- Blue links on white backgrounds — clear affordance
- Black text on light grey (#f3f2f1) surfaces — subtle contrast for non-primary content
- Yellow focus outline on dark elements — instantly visible
Avoid:
- Yellow text on white — fails contrast
- Blue text on black — drops contrast to borderline levels
- Mixing the two blacks (#000000 and #0b0c0c) arbitrarily — they have specific roles
3. Typography
3.1 Font Families
The system uses GDS Transport, a custom font designed for UK road signage. Fallback: Arial.
No Google Fonts. No Adobe Fonts. This is a bespoke typeface embedded in the GOV.UK frontend.
It’s humanist sans with generous letter spacing and open counters — perfect for legibility.
3.2 Type Scale
| Element | Font | Size | Weight | Line Height |
|---|---|---|---|---|
| Heading-1 | GDS Transport, Arial | 64px (4rem) | 700 | 1.20 |
| Heading-1 | GDS Transport, Arial | 36px (2.25rem) | 700 | 1.11 |
| Link | GDS Transport, Arial | 30px (1.88rem) | 400 | 1.00 |
| Heading-1 | GDS Transport, Arial | 28.5px (1.78rem) | 700 | 1.32 |
| Heading-1 | GDS Transport, Arial | 24px (1.50rem) | 700 | 1.25 |
| Heading-1 | GDS Transport, Arial | 19px (1.19rem) | 400 | 1.32 |
| Link | GDS Transport, Arial | 19px (1.19rem) | 400 | 1.32 |
| Button | GDS Transport, Arial | 19px (1.19rem) | 400 | 1.00 |
| Button | GDS Transport, Arial | 19px (1.19rem) | 700 | 1.05 |
| Heading-1 | GDS Transport, Arial | 19px (1.19rem) | 700 | 1.05 |
| Link | GDS Transport, Arial | 19px (1.19rem) | 700 | 1.30 |
| Heading-1 | GDS Transport, Arial | 18.72px (1.17rem) | 700 | — |
| Link | GDS Transport, Arial | 16px (1rem) | 400 | 1.25 |
| Heading-1 | GDS Transport, Arial | 16px (1rem) | 700 | — |
| Button | GDS Transport, Arial | 16px (1rem) | 700 | — |
| Link | GDS Transport, Arial | 16px (1rem) | 700 | — |
| Heading-1 | GDS Transport, Arial | 16px (1rem) | 400 | — |
| Button | GDS Transport, Arial | 16px (1rem) | 400 | 1.25 |
| Button | Arial | 13.3333px (0.83rem) | 400 | — |
3.3 Hierarchy
This scale is unusual: multiple “heading-1” contexts at different sizes. They’re reusing the same semantic label for different visual roles — likely due to modular templates.
Biggest size (64px) is rarely used — probably for hero headings. The 36px and 28.5px mark the common section headers. Body text sits at 19px — larger than typical web defaults (16px) — making it more readable for wider audiences.
4. Spacing & Layout
4.1 Spacing Scale
Base scale: 8px grid. But there’s plenty of off-grid values — 5px, 7px, 7.5px — for precise optical adjustments.
| Value | Rem | Count |
|---|---|---|
| 1px | 0.06rem | 2 |
| 4px | 0.25rem | 22 |
| 5px | 0.31rem | 69 |
| 6px | 0.38rem | 4 |
| 7px | 0.44rem | 9 |
| 7.5px | 0.47rem | 4 |
| 8px | 0.50rem | 9 |
| 10px | 0.63rem | 26 |
| 12px | 0.75rem | 1 |
| 15px | 0.94rem | 35 |
| 16px | 1.00rem | 1 |
| 17px | 1.06rem | 3 |
| 19px | 1.19rem | 20 |
| 20px | 1.25rem | 78 |
| 25px | 1.56rem | 4 |
| 30px | 1.88rem | 25 |
| 32px | 2.00rem | 7 |
| 40px | 2.50rem | 6 |
| 50px | 3.13rem | 3 |
| 60px | 3.75rem | 14 |
4.2 Layout
Breakpoints:
- 1020px
- 1281px
This implies a desktop-first layout with two major responsive jumps — probably tablet-to-desktop and large desktop.
5. Visual Elements
Border radius: None. Everything is sharp-cornered. That’s a deliberate choice — echoes printed government forms.
Shadows: Minimal. Only functional shadows for buttons: e.g., rgb(0, 45, 24) 0px 2px 0px 0px — subtle depth, not drop shadows.
Borders: Used extensively for separation — 1px solid greys (#b1b4b6) for cards/forms, thicker coloured borders for emphasis.
6. Components
6.1 Buttons
Primary Button (gem-c-button govuk-button)
- Default: bg
#00703c(rgb(0, 112, 60)), white text, padding8px 10px 7px, border2px solid transparent, shadowrgb(0, 45, 24) 0px 2px 0px - Hover: bg
#f3f2f1, text#003078, shadowrgb(11, 12, 12) 0px 3px - Active: bg white, text black, shadow
rgb(0, 45, 24) 0px 2px - Focus: bg
#f3f2f1, text black, border1px solid #ffdd00, shadow#ffdd00 0px -2px, #0b0c0c 0px 4px
Search Input (gem-c-search-with-autocomplete__input)
- Default: white bg, black text, padding
6px, border none - Hover: box shadow
#b1b4b6 0px 0px 0px 10px - Focus: box shadow
0px 0px 0px 4px inset, outline#ffdd00 solid 3px
Search Button (gem-c-search__submit)
- Default: bg
#d2e2f1, text#1d70b8 - Hover: bg
#f3f2f1, text#003078 - Focus: same focus style as primary button
Feedback Link Button (govuk-button gem-c-feedback__prompt-link)
- Default: transparent bg, black text, border
1px solid #0b0c0c - Hover: bg
#f3f2f1, text#003078 - Active: bg yellow, text black
- Focus: same focus style as primary button
6.2 Links
Three variants:
- Blue text, underline — hover turns white (99% opacity) and removes underline
- Black text, underline — hover turns white (99% opacity)
- White text, no underline — hover adds 3px underline
6.3 Forms
Search input is the main example. Focus indicators are loud — thick yellow outline.
No rounded corners anywhere.
6.4 Cards
Borders: 1px solid #b1b4b6 on top edges. No shadows. Padding values match spacing scale.
7. Design Tokens
:root {
/* Colors */
--color-black: #000000;
--color-govuk-black: #0b0c0c;
--color-govuk-blue: #1d70b8;
--color-white: #ffffff;
--color-govuk-grey: #b1b4b6;
--color-govuk-green: #005a30;
--color-govuk-yellow: #ffdd00;
--color-govuk-navy: #003078;
--color-white-99: #ffffff;
/* Typography */
--font-gds-transport: "GDS Transport", Arial;
--font-size-xxl: 64px;
--font-size-xl: 36px;
--font-size-lg: 30px;
--font-size-md: 28.5px;
--font-size-sm: 24px;
--font-size-base: 19px;
--font-size-small: 18.72px;
--font-size-xs: 16px;
--font-size-xxs: 13.3333px;
/* Spacing */
--space-1: 1px;
--space-4: 4px;
--space-5: 5px;
--space-6: 6px;
--space-7: 7px;
--space-7-5: 7.5px;
--space-8: 8px;
--space-10: 10px;
--space-12: 12px;
--space-15: 15px;
--space-16: 16px;
--space-17: 17px;
--space-19: 19px;
--space-20: 20px;
--space-25: 25px;
--space-30: 30px;
--space-32: 32px;
--space-40: 40px;
--space-50: 50px;
--space-60: 60px;
/* Shadows */
--shadow-green: rgb(0, 45, 24) 0px 2px 0px 0px;
--shadow-black: rgb(11, 12, 12) 0px 3px 0px 0px;
}8. AI Coding Assistant Prompt
# GOV.UK Design System Specification
You are a GOV.UK design expert. Build UIs matching their visual language exactly.
## Brand Context
GOV.UK prioritises clarity, accessibility, and authority. The design system is minimal, high-contrast, and uses sharp corners. Typography is custom and highly legible.
## Color Palette
- Black: #000000 — UI text, solid borders
- GOV.UK Black: #0b0c0c — Primary text, headings
- GOV.UK Blue: #1d70b8 — Links, accents
- White: #ffffff — Background, text on dark surfaces
- GOV.UK Grey: #b1b4b6 — Neutral dividers, subtle UI
- GOV.UK Green: #005a30 — Success, primary button backgrounds
- GOV.UK Yellow: #ffdd00 — Focus outlines, active highlights
- GOV.UK Navy: #003078 — Hover text colour
- White (99%): #ffffff — Link hover text
## Typography
- Font family: "GDS Transport", Arial
- Sizes:
- H1: 64px / 700 / 1.20
- Section heading: 36px / 700 / 1.11
- Link large: 30px / 400 / 1.00
- H3: 28.5px / 700 / 1.32
- H4: 24px / 700 / 1.25
- Body: 19px / 400 / 1.32
- Body bold: 19px / 700 / 1.05
- Small: 16px / various weights
## Spacing & Grid
Base: 8px grid with optical adjustments (5px, 7px, etc.)
Scale: 1, 4, 5, 6, 7, 7.5, 8, 10, 12, 15, 16, 17, 19, 20, 25, 30, 32, 40, 50, 60px
## Border Radius
None: 0px — all components
## Shadows & Depth
Minimal, functional:
- Primary button: rgb(0, 45, 24) 0px 2px
- Hover: rgb(11, 12, 12) 0px 3px
## Components
### Primary Button
Default:
- background: #00703c
- color: #ffffff
- padding: 8px 10px 7px
- border: 2px solid transparent
- shadow: green shadow
Hover:
- background: #f3f2f1
- color: #003078
Focus:
- background: #f3f2f1
- border: 1px solid #ffdd00
- shadow: yellow + black combo
### Link
- Default: #1d70b8, underline
- Hover: #ffffff (99%), no underline
### Input Fields
- Default: white bg, black text, no border
- Focus: yellow outline, inset shadow
## Layout & Responsive Rules
Breakpoints:
- Tablet: 1020px
- Desktop: 1281px
## Interaction Rules
- Transition: 150ms ease for state changes
- Focus: thick yellow outline + black secondary
## DO
- Use exact hex values
- Maintain 8px grid
- Keep corners sharp
- Ensure AAA contrast
## DON'T
- Add border radius
- Use unapproved colours
- Reduce contrast
## Code Examples
```css
.btn-primary {
background: #00703c;
color: #ffffff;
padding: 8px 10px 7px;
border: 2px solid transparent;
box-shadow: rgb(0,45,24) 0px 2px 0px 0px;
}
.btn-primary:hover {
background: #f3f2f1;
color: #003078;
}
.btn-primary:focus {
border: 1px solid #ffdd00;
box-shadow: #ffdd00 0px -2px, #0b0c0c 0px 4px;
}
---
## 9. Summary
**TL;DR:** GOV.UK’s design system is utilitarian, high-contrast, and accessibility-first. Sharp corners, strong typography, minimal shadows, and official blues define the look.
**Brand Keywords:** accessibility-first, authority-minimalist, sharp-cornered, functional-color