Toggle menu

Styles

Colour contrast

The Web Content Accessibility Guidelines (WCAG) aim to make web content more accessible to a wider range of people with disabilities. The contrast ratio requirements ensure that text and graphical elements are easily distinguishable from their backgrounds. Here's a detailed breakdown of the contrast ratio requirements for different WCAG levels:

WCAG 2.0 Level AA

  • Normal Text: A contrast ratio of at least 4.5:1.
  • Large Text: A contrast ratio of at least 3:1.

WCAG 2.1

  • Graphics and User Interface Components: A contrast ratio of at least 3:1.

WCAG Level AAA

  • Normal Text: A contrast ratio of at least 7:1.
  • Large Text: A contrast ratio of at least 4.5:1.

Definition of Large Text

  • Large Text: Text that is at least 14 point (typically 18.66px) and bold, or 18 point (typically 24px) or larger.

These guidelines are designed to improve readability and usability for users with visual impairments, ensuring that web content is accessible to as many people as possible. When designing web content, adhering to these contrast ratio requirements is crucial for compliance with accessibility standards.

We use the WebAIM Colour Contract Checker (opens new window) to test the colours used on the website meet the WCAG guidelines.

Examples of colour contrast used throughout the website

Call to action buttons

Primary call to action buttons

Call to action

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#fffffff#266427AA - PassAAA - PassAA - PassAAA - Pass7.15:1Link to results
Hover state#fffffff#183f19AA - PassAAA - PassAA - PassAAA - Pass11.9:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

 

Secondary call to action buttons

Call to action

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#111111#ffffffAA - PassAAA - PassAA - PassAAA - Pass18.88:1Link to results
Hover state#111111#e6e6e6AA - PassAAA - PassAA - PassAAA - Pass15.12:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

 

Form buttons

Primary form buttons

styles__colours-form-primary

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#ffffff#045a90AA - PassAAA - PassAA - PassAAA - Pass7.31:1Link to results
Hover state#ffffff#034975AA - PassAAA - PassAA - PassAAA - Pass9.48:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

Secondary form buttons

styles__colours-form-secondary

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#111111#e5e5e5AA - PassAAA - PassAA - PassAAA - Pass14.99:1Link to results
Hover state#111111#BABABAAA - PassAAA - PassAA - PassAAA - Pass9.72:1Link to results
Active and focus state#111111#BABABAAA - PassAAA - PassAA - PassAAA - Pass9.72:1Link to results

 

Header

Top navigation

styles__header--topnav

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#ffffff#111111AA - PassAAA - PassAA - PassAAA - Pass18.88:1Link to results
Hover state#ffffff#111111AA - PassAAA - PassAA - PassAAA - Pass18.88:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

Breadcrumb

styles__header--breadcrumb

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#ffffff#045a90AA - PassAAA - PassAA - PassAAA - Pass7.31:1Link to results
Hover state#ffffff#045a90AA - PassAAA - PassAA - PassAAA - Pass7.31:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

 

Footer

Feedback

styles__footer--feedback

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Text#111111#e5e5e5AA - PassAAA - PassAA - PassAAA - Pass14.99:1Link to results
Default state#045a90#e5e5e5AA - PassAAA - FailAA - PassAAA - Pass5.8:1Link to results
Hover state#034e7c#e5e5e5AA - PassAAA - FailAA - PassAAA - Pass6.99:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

Social links

styles__footer--social

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#ffffff#353535AA - PassAAA - PassAA - PassAAA - Pass12.26:1Link to results
Hover state#ffffff#353535AA - PassAAA - PassAA - PassAAA - Pass12.26:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results

Ultility links

styles__footer--utility

StateForeground colourBackground colourNormal text size colour contrastLarge text size colour sizeContrast ratioResults
Default state#ffffff#404040AA - PassAAA - PassAA - PassAAA - Pass10.36:1Link to results
Hover state#ffffff#404040AA - PassAAA - PassAA - PassAAA - Pass10.36:1Link to results
Active and focus state#111111#ffdd00AA - PassAAA - PassAA - PassAAA - Pass14.02:1Link to results