2.4 Navigable · SC 2.4.13

AAA2 min read

Focus Appearance

When the keyboard focus indicator is visible, it is at least as large as a 2 CSS pixel thick perimeter of the unfocused component, and has a contrast ratio of at least 3:1 between the focused and unfocused states.

In plain language

When you use Tab to move through a page with your keyboard, whatever has focus needs a clear visual indicator, such as a border or outline that stands out from what's around it.

The recommended minimum is an outline at least 2 CSS pixels thick, with a contrast ratio of at least 3:1 between the focused and unfocused states. A design that uses 3px or 4px is even better. The goal is that anyone navigating by keyboard can tell at once where the focus is on the page.

Note: 2px and a 3:1 contrast ratio are the minimum values defined by the W3C, so treat them as a floor. For the full specification, see the official documentation for this criterion.

Why it matters

A faint or tiny focus indicator may technically be there, but someone with low vision won't see it. This criterion sets a concrete minimum size and contrast so the indicator is usable.

In practice

Fails this criterion

A focus indicator changes a button's border from dark grey to a very slightly lighter grey. The change is technically there but barely visible.

Meets this criterion

When focused, the same button gets a solid, thick outline that contrasts with both the button and the background and is easy to spot at a glance.

Test it yourself

Tab through the page's interactive elements and look closely at the focus indicator on each one. Is it clearly visible and easy to spot, or thin and low-contrast enough to miss?

Read SC 2.4.13 on the official WCAG 2.2 specification ↗