UX Law 15 of 30 · Gestalt
Law of Similarity
Things that look alike are seen as one group, and people expect them to work the same way.

You switch on the TV halfway through a cricket match. You don’t know the score or who is batting, but in one second you know which players are on which side. You read the jersey colours before you read a single name.
That is the Law of Similarity. Things that look alike are seen as one group, and people expect them to behave alike too.
What is the Law of Similarity?
The Law of Similarity says that people see elements that look alike, in colour, shape, size or style, as belonging together, and expect them to work the same way.
Every visual style on your screen is a promise. If links are blue, then blue means “tap me”. If the main buttons are solid and rounded, that shape means “this moves me forward”. People learn these promises within seconds of using your product and then rely on them without thinking.
So consistency is not about neatness. It is about meaning. When two things that do the same job look the same, people know what to expect. When something looks the same but behaves differently, they get it wrong, and they trust the rest of the interface a little less.
Why it happens
The rule comes from Gestalt psychology. In 1923, Max Wertheimer described how the brain groups what it sees before it consciously looks at anything: things that share a colour, shape or size get bundled together automatically. It is a shortcut that lets you make sense of a busy scene quickly.
Because the grouping happens so early, you can’t switch it off. You can only use it well or badly. Designers who use it well let the eye do the work. Designers who ignore it end up adding labels, tooltips and help text to explain what the styles should already have said.
Law of Similarity examples in real life
You have seen this many times already. A few places it shows up:
Jerseys on a cricket field
Eleven players in one colour, two batters in another. Even from the far end of a stadium, you can tell who is fielding and who is batting before you can see a single face.
Chat bubbles in WhatsApp
Your messages sit on the right in one colour; everyone else’s sit on the left in another. You can scroll through a long chat and see who said what without reading the names.
Metro line colours
In the Delhi Metro, lines are named by colour, like the Blue Line and the Yellow Line. The same colours run on the maps, the signs and the station markings, so you follow a colour rather than a list of station names.
Red for destructive actions on iPhone
When you go to delete a photo or a contact on an iPhone, the delete option shows in red while the others don’t. Before you read the word, you already know that one is different.
The problem
What goes wrong when you ignore the Law of Similarity
Imagine a shopping app that uses its brand orange for links, for prices, for the “Add to cart” button and for section headings. People tap a price thinking it opens details. Nothing happens. They tap a heading. Nothing. After a few dead taps, they stop trying the orange things at all, including the one link to size charts that would have saved them a return.
The common mistake
Blue text that is sometimes a link and sometimes just a heading. People tap and nothing happens.
The solution
How to use the Law of Similarity in UI/UX design
- 1
One style for every link
Pick one colour for links and use it only for links, never for headings or decoration. In body text, underline links too, so they still read as links for people who can’t tell the colour apart.
- 2
One style for every primary button
Give the main action on every screen the same colour, shape and size, and use it for only one button per screen. Secondary actions get a quieter style, like an outline or plain text.
- 3
Make risky actions look different
Style actions like Delete, Cancel subscription or Remove account differently from everything else, usually in red, and keep them away from the main button. Pair the style with a clear label and a confirmation step.
Rule to remember
Same job, same look. Different job, different look.
Try it yourself
Open your most-used app and take a screenshot. Find everything in one colour, like all the blue things or all the green things. Ask yourself: do they all do the same kind of job? If one of them is a heading and another is a button, you have found a broken promise.
Where the Law of Similarity comes from
One of the Gestalt principles of perception, described by Max Wertheimer in 1923: elements that look alike are seen as belonging together.
Sources and further reading
- Max Wertheimer, “Untersuchungen zur Lehre von der Gestalt II”, Psychologische Forschung, 1923.
- W3C, Web Content Accessibility Guidelines (WCAG) 2.1, Success Criterion 1.4.1: Use of Color.
- Jon Yablonski, Laws of UX, O’Reilly Media, 2020.
Law of Similarity: questions people ask
What is the difference between the Law of Similarity and the Law of Proximity?
Similarity groups things by how they look; proximity groups things by how close they are. They often work together. When they disagree, for example two different-looking buttons placed side by side, people can get confused about what belongs with what.
Is colour enough to show that things are similar?
No. Colour blindness is common, and the Web Content Accessibility Guidelines say colour must not be the only way to convey meaning. Back colour up with shape, an icon, an underline or a clear label.
What are the other Gestalt principles?
The best known are proximity, similarity, closure, continuity, figure and ground, and common region. Each describes a way the brain groups what it sees. Together they explain why some layouts feel organised and others feel messy.
Found this useful? Share it with your team.
Free PDF
Law of Similarity and 29 more laws, in one free guide.
Every law in easy words, with everyday examples and one rule to remember. PDF · 33 pages · 13 MB.
Keep reading
Related UX laws
Law 09 · GestaltLaw of ProximityThings placed close together look like they belong together.Read Law of Proximity
Law 19 · GestaltLaw of Common RegionThings inside the same boundary are seen as one group.Read Law of Common Region
Law 23 · GestaltLaw of Uniform ConnectednessThings joined by a line, colour or shape are seen as one group, even when they are far apart.Read Law of Uniform Connectedness

