London City Data

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

Mode

Semantic data colours

We've created semantic tokens to simplify and standardise the use of our colours.

Semantic Colour tokens

Mode

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.

Example

Line chart of London variable values

The line chart shows monthly time series data for Variable A, B and C, measured in GBP (Pounds Sterling). The x axis ranges in months from January 2015 to March 2024. The y axis ranges from £0 to £60,000. All variable values have fallen steadily since around 2017, but Variable A has fallen the most. Variable A's highest value was £61,816 in February 2015, its lowest value was £11,667 in July 2023, (a change of around -£50,149) and its mean average value was £30,758. Variable B and C follow a similar fall, with a mean average of £27,545 and £23,681 respectively.

For charts where you want to show "other" or "context" data, use color-data-primary and color-data-context.

Example

Line chart of London variable values

The line chart shows monthly time series data for Variable A and B, measured in GBP (Pounds Sterling). The x axis ranges in months from January 2015 to March 2024. The y axis ranges from £0 to £60,000. All variable values have fallen steadily since around 2017, but Variable A has fallen the most. Variable A's highest value was £61,816 in February 2015, its lowest value was £11,667 in July 2023, (a change of around -£50,149) and its mean average value was £30,758. Variable B follows a similar fall, with a mean average of £27,545.

Quantitative colour scales

Quantitative colour scales are used to encode value using gradients of colour. For example, on a choropleth map (below).

Example

Choropleth map of London boroughs and their variable values

The choropleth map of London shows the rate of something at a borough level. The lowest value is 9% in Merton. The highest value is 97% in Hounslow. The mean value is 50%.

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

Sequential
blue
300
900
Mode

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.

Chart colour tokens

Mode

Further reading