Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve colour contrast of Crown Copyright logo #2134

Open
4 tasks
CharlotteDowns opened this issue Feb 3, 2021 · 3 comments
Open
4 tasks

Improve colour contrast of Crown Copyright logo #2134

CharlotteDowns opened this issue Feb 3, 2021 · 3 comments

Comments

@CharlotteDowns
Copy link
Contributor

CharlotteDowns commented Feb 3, 2021

What

The crown copyright logo against the footer background has a low contrast ratio. However, it does meet the contrast requirement for meaningful graphics of 3:1. We don't think this is a WCAG fail and it doesn't need to be listed in an accessibility statement, but there's potential work we can do to improve the contrast so it better matches that of the text/links around it.

current Crown copyright logo in the footer
The crown copyright logo has a hex code colour of #6E777A, which against the footer background of #F3F2F1 has a AA Large 4.09:1 colour contrast ratio.

Normal Text
WCAG AA:Fail
WCAG AAA:Fail

Large Text
WCAG AA:Pass
WCAG AAA:Fail

Graphical Objects and User Interface Components
WCAG AA: Pass

Why

A comment was added to the epic about an issue raised in the Axe Review accessibility tool. The failure is only of the logo and not to the footer text.

Who needs to know about this

Designers, Developers, Policy

Further detail

A suggestion could be to change the colour of the logo but we would need to check with the owners of the Crown Copyright logo.

Crown copyright logo in the footer using the darker text colour
Here is a mock-up of the crown copyright logo using the footer text colour #454A4C which has a contrast ratio of AAA 8.03:1 against the footer background #F3F2F1.

Done when

  • Agreed with Crown Copyright on approach
  • Decided on whether the logo should be an .svg or .png
  • Updated file created
  • Pull request created and merged
@vanitabarrett
Copy link
Contributor

Updated issue to explain that the Crown Copyright logo meets colour contrast requirements for non-text elements and meaningful graphics, so this isn't a WCAG fail.

@automaticdreams
Copy link

Using axe DevTools, I also get a warning that on element .govuk-footer__copyright-logo, Element's background color could not be determined due to a background image

NickColley added a commit to NickColley/govuk-frontend that referenced this issue Nov 7, 2022
Increases the copyright crest logo contrast to match the surrounding text

mask-image is available in modern browsers and we fallback
to regular background-image in all other browsers.

Tested as functional (same as before) in  Internet Explorer 9-11.

Tested to increase contrast in Firefox latest, Chrome latest, Safari latest,
iOS Safari latest, Chrome for Android latest.

Closes alphagov#2134
@dav-idc
Copy link

dav-idc commented Jan 27, 2023

If we want to exactly pass 4.5:1 contrast ratio without rocking the boat too much, we could go with #667171.

That would be the closest colour to what we currently have, so would likely be barely noticeable by the general public (but will mean we meet the 4.5:1 threshold).

#6E777A Current colour at 4.09:1
#667171 Proposed colour at 4.5:1

My hunch is that because this colour change is so minor, we wouldn't need to get approval from the folks that manage the Crown Copyright logo. We would still need to inform them though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

4 participants