Quick colour guide
Simple guide to using colour in data visualisation
Principles
Colours should be easily differentiated by as many people, in as many environments as possible.
Colours should have appropriate levels of contrast with the background. The smaller the element, the higher the contrast required.
Don’t use more than 2 or 3 categorical colours.
Use a single colour that highlights your key data, and grey for secondary contextual data.
Practice
Categorical colours
We developed our categorical colour palettes by carefully balancing the requirements of GLA brand recognition, colour differentiation and contrast.
These categorical colours pass differentiation tests for all but small lines, but don't use them all in a single chart.
Categorical palette
Semantic data colours
We've created semantic tokens to simplify and standardise the use of our colours.
Semantic Colour tokens
We recommend you consistently use color-data-primary, secondary and tertiary in your charts, unless you have a specific reason for choosing a different set.
These colours are easily differentiated, and also have an equivalent set in dark mode.
Line chart of London variable values
For charts where you want to show "other" or "context" data, use color-data-primary and color-data-context.
Line chart of London variable values
Quantitative colour scales
Quantitative colour scales are used to encode value using gradients of colour. For example, on a choropleth map (below).
Choropleth map of London boroughs and their variable values
Sequential
A sequential colour scale is a continuous or stepped gradient of colour running in one direction. For example, a gradient from light to dark blue, might be mapped to values that run from 1 to 100.
We typically use up to 5 steps of blue, from light to dark (or the reverse in dark mode).
Diverging
A diverging colour scale is a sequential scale that "diverges" in two directions, typically negative and positive.
Our default diverging scale, is red (negative) to blue (positive). This is to avoid any red/green perception issues, and is a simple augmentation of our default (positive) blue ramp.
Generate a colour ramp
Note: With diverging scales, you may want to add a central neutral grey step between the positive/negative steps to indicate values that are truly zero.
Chart styling
To ensure consistency and correct contrast across all charts, use the following tokens to define your chart's surface, axis, grid and labels.