WCAG Encyclopedia

2.3.1 · OperableLevel A

Three Flashes or Below Threshold

Nothing may flash more than three times per second, unless the flashing area is very small or the flash is low-contrast. Red flashes are held to a stricter limit, because saturated red triggers photosensitive seizures at intensities other colours do not.

Principle
Operable
Guideline
2.3
Level
A
In WCAG since
2.0
Number
2.3.1

Broken, then fixed

The same interface twice: first with the mistake, then with the smallest change that fixes it.

Broken: A full-width banner strobing several times a second.

Depicted, not animated — four successive frames of a banner alternating at roughly 8 Hz.

Around one in four thousand people has photosensitive epilepsy. For them this is not an annoyance; it is a medical event caused by a website.

Fixed: The attention is drawn without flashing.
2 items left in stockOrder within 3 hours for delivery on Friday.

Urgency conveyed by contrast, weight, and words. Where motion is genuinely wanted, a single slow fade under three flashes per second is safe — and anything animated should still respect prefers-reduced-motion.

What changed in the code

The fix as a diff: removed lines are marked with a minus, added lines with a plus.

Markup diff — alert.css
removed:   animation: strobe 0.12s steps(2) infinite;  /* ~8 flashes/sec */
added:   animation: none;
added:   border-left: 3px solid var(--alert);
added:   font-weight: 600;

If a flash is unavoidable, the safe envelope is under three per second, in a small area, and never saturated red.

How to test

Check your own interface against 2.3.1, one step at a time.

  1. List everything on the page that can flash: videos, animated images, adverts, games, and effects in the interface such as a flashing alert.
  2. Play each one and count the flashes in any one second. Three or fewer in every second passes, whatever their size and colour.
  3. Where anything flashes more than three times in a second, measure the area that flashes at once. On a 1024 by 768 screen, a combined area smaller than 341 by 256 pixels is below the threshold, for red flashes as well as general ones.
  4. Count any flashing to or from a saturated red as red flashes, separately from the rest. A change too faint to count as a general flash can still count as a red one.
  5. Run video and animation that is still in doubt through a flash analyser such as PEAT, the free Photosensitive Epilepsy Analysis Tool from the Trace Center, and fix every segment it fails.

Common questions

Does a warning before a flashing video pass 2.3.1?

No. A seizure can start before the person has time to read a warning or stop the video. The flashing itself has to stay within the limits.

Can a small area flash faster than three times a second?

Yes, when the area is small enough. Flashing that covers less than about a quarter of the central field of vision, roughly 341 by 256 pixels on a 1024 by 768 screen, is below the threshold, and that holds for red flashes too.

Does 2.3.1 apply to video I embed from another site?

Yes. Flashing content on your page counts whoever made it. Check an embedded video for flashes before you publish it.

Try it yourself

A lab is a small working piece of interface that you change yourself. Read its steps, use the controls under it, and watch the verdict line at the bottom: it says whether the criterion passes or fails as you go. Reset puts it back.

Try it: raise the flash rate

How to use this lab

  1. Goal. Set how often a “Last 2 in stock” banner flashes, and find where it becomes unsafe.
  2. The controls. The choices under “The banner is set to flash” run from 1 flash a second to 8 flashes a second. The film strip shows one second of the banner as 16 still frames, and the Flash rate meter marks the limit of 3. The page itself never flashes, at any setting.
  3. Try this. The lab starts at 2 flashes a second, and passes. Choose 3 flashes a second, then 4 flashes a second, and watch the Flash rate meter go over the limit.
  4. What it means. At 3 flashes a second or fewer, 2.3.1 passes. At 4 or 8, 2.3.1 fails: flashing more than three times in any one second can cause seizures in people with photosensitive epilepsy. The verdict line under the lab says which.

Depicted, never played: this page does not flash at any setting. The strip is one second of the banner, frame by frame.

The banner is set to flash
Flash rate: 2 flashes a second, within the limit of 3

2.3.1 passes

More from Operable

This guideline has no other Level A or AA criteria, so here are more under the same principle.