LONDON (AP) — When it comes to mating, guppies treasure their ugly friends - because they look so good by comparison.

An article published Wednesday by Britain's Royal Society says that male guppies prefer to associate with their drab-colored counterparts when females are around.

"Males actively choose the social context that maximizes their relative attractiveness," the article said. Or, as lead author Clelia Gasparini put it, "If you are surrounded by ugly friends, you look better."

Gasparini and her colleagues at Italy's University of Padua built their theory on a kind of guppy dating game. An aquarium was set up with one female in partition on either end. Guppy bachelorette No. 1 had two attractive, brightly-colored males placed on either side of her. Guppy bachelorette No. 2 was stuck with uglier, drab-colored fish.

When a male guppy was put in the middle of the tank, and given the choice of which female to sidle up to, Bachelorette No. 2 was the more popular pick, with male guppies spending about 62 percent of their time hanging around her side of the aquarium.

What's more, the researchers found that the time guppies spent with bachelorette No. 2 correlated with their unattractiveness. The uglier the guppy, the less likely it was that he would hang around the brightly colored fish placed next to bachelorette No. 1.

Because it could be argued that that guppies avoided their brightly colored pals because attractive fish were more aggressive, or because predators were more likely to spot them, the experiment was repeated. Researchers ran it without any females, and again with the lights in the male enclosures turned down so that the test guppies couldn't see them.

Gasparini, who's now a post-doctoral researcher at the University of Western Australia, said the extra experiments showed that aggression or predators weren't a factor.

But a big question remained: Could results from the aquarium be applied to a night out at the bar?

"As a researcher I cannot compare human mating systems with the guppy's one," she said. "But if you ask me as a person, sure ... I saw this tactic working pretty well with humans.

"If you want to impress someone, do you think you will look more attractive in comparison with Mr. Bean or George Clooney?"