In a new show on Prime Video, Claire Foy plays a British aristocrat whose sex life became the subject of salacious tabloid stories in the 1960s.LONDON — Everybody loves a sex scandal, and a posh one is even better. The great and the good brought down in disgrace: That’s a story people want to hear.In “A Very British Scandal,” a three-part series streaming on Prime Video from April 22, Claire Foy plays the Duchess of Argyll, a real-life aristocrat whose sex life was pored over in a 1960s court case that created a media frenzy and riveted the nation. When the BBC aired “A Very British Scandal” this past December, nearly 7 million people tuned in.The show is a companion to “A Very English Scandal,” another hugely popular Amazon-BBC coproduction in which Hugh Grant played an upper-crust politician who suffered a similar fate.These stories, Foy said in a recent interview, appealed to elements of Britain’s national character. “We’re perverts, aren’t we?” Foy said. “Deep down, all British people love it: We love gossip and love the titillating things other people are getting up to,” she added. “Anything that happens behind closed doors, we’re all completely obsessed with.”In the show’s final episode, one of the duchess’s aristocratic friends bemoans the British public’s desire to know what the upper classes are up to. “The little people in their grubby pits look up to us, because we are not them,” says the friend, played by Julia Davis. But stories about the duchess’s sex life, she says, “are dragging us down so we look just like them.”Foy’s character was never one of “the little people,” but she wasn’t always an aristocrat, either. She was born Margaret Whigham, in Scotland, in 1912. Her father, a self-made textiles millionaire, moved the family to New York when she was a child, and she lived there until she was 14. Back in Britain, she became a much-photographed debutante with a fancy trans-Atlantic sheen, and a fixture of newspaper society pages. After a string of high-profile relationships and a first marriage that ended in divorce, she became the Duchess of Argyll in 1951 when she married the duke, Ian Campbell (played by Paul Bettany in the show), whose family had been part of the Scottish aristocracy since the 1400s.A glamorous A-lister who counted society columnists as her friends, the duchess cultivated a chic media image. And she realized early on she could make money from what we would now call her “personal brand,” taking cash from tabloid newspapers to appear in fawning articles. (“Beautiful! Rich! Distinguished!” read a teaser for a 1961 Daily Mirror splash. “This is the Duchess of Argyll the world knows.”)The duchess, photographed in 1955 for magazine coverage of the London social season. She initially had a symbiotic relationship with the British press. Bert Hardy/Hulton Archive/Getty ImagesBut when her marriage to the duke broke down, she lost control of the story. The couple’s nasty divorce case — in which the duchess’s intimate photos were presented in court — made her the subject of salacious newspaper articles and gossipy anecdotes, and later, “A Very British Scandal” and even an opera.During the trial, the duke submitted a list of 88 men he said the duchess had slept with during their marriage, as well as Polaroids he had stolen from her that showed the duchess performing oral sex on an unknown man whose head was not in the frame.Ruling in the duke’s favor to grant the divorce in 1963, the judge said the duchess was a “completely promiscuous woman” who had indulged “in disgusting sexual activities to gratify a debased sexual appetite.” The details of the “headless man” photos were gleefully written up in British newspapers, which raked over the case for months. Margaret the glittering socialite became Margaret “the dirty duchess.”Over the rest of her life, she frittered away the fortune she inherited from her father on a series of unsuccessful law suits and dubious investments. Her personal relations didn’t fare much better: She fell out with a daughter from her first marriage, and many of her friends. The duchess died in penury, at 80, in a London retirement home. The first hymn at her funeral, in 1993, began, “Dear Lord and father of mankind, forgive our foolish ways.”Sarah Phelps, who wrote the script for “A Very British Scandal,” said that the duchess’s case and the media furor around it represented “the end of an era.” It was “the birth of a different kind of journalism, and a way of writing about sex and scandal in a very, very prurient way,” she said. And it paved the way for later media depictions of Britney Spears, Amy Winehouse and Meghan Markle — “that viciousness and anger that is directed at women in the public eye,” she said.When the initial outrage faded, the duchess remained the subject of snickering innuendos for decades. Grinning men would pose for photos beside the boarding sign for a Scottish boat that shared her name: “Queue here for the Duchess of Argyll.” Today’s TV audiences will have more sympathy for the duchess, who now looks like a victim of “slut-shaming,” and the nonconsensual sharing of her photos like “revenge porn.” It’s unlikely many viewers will judge her for a sex act that some women’s magazines now offer tips on performing. Yet they might still find it hard to warm to the duchess, who Foy plays as an arrogant, scheming snob.“She lied and she cheated, and she did all sorts of really awful things,” Foy said. “In her defense, they were also done to her.”As a person in the public eye, she sympathized with the duchess and her treatment by the press. “She was one thing, and then they decided she was something else,” Foy said. “Journalists dictate the public perception of you in my industry,” she added. “You are completely in the hands of the people who write the story.”Allison Cook portrayed the duchess in a 2013 production of the opera “Powder Her Face,” staged at the Brooklyn Academy of Music.Sara krulwich/The New York TimesAnother author of the duchess’s story is the British composer Thomas Adès, whose 1995 opera “Powder Her Face” casts her as its antiheroine. First presented at the Cheltenham Festival in England, when Adès was just 24, “Powder Her Face” has since been performed over 300 times across Europe and the United States, according to Faber, its publisher.Adès said he started out by looking for a classic operatic plot: “someone in a grand position, who’s outwardly very strong and impressive, who is dismantled and brought low by forces from the outside.” Philip Hensher, the opera’s librettist, remembered the Argyll divorce case, Adès said: The duchess fit the bill perfectly.Whereas “A Very British Scandal” ends with the courtroom judgment, “Powder Her Face” picks up at the end of the duchess’s life, when she was broke and holed up in a hotel she couldn’t afford. In a series of dreamy flashbacks, Adès recreates some key vignettes from the story of her life, including the liaison with “the headless man” as an aria from the duchess that begins with words and ends with humming.“You can’t really pretend that she’s an entirely sympathetic character, that she’s Mimì,” said Adès, referring to the fragile seamstress who dies of tuberculosis in Puccini’s “La Bohème,” “as much as I think she’s such a tragic figure.” The duchess, he added, was “formidable, and did plenty of things that were pretty questionable.”Paul Bettany, center left, plays the duke in “A Very British Scandal,” alongside Foy’s duchess.Alan Peebles/Amazon Prime VideoDespite a persistent whiff of scandal, the duchess continued to lead an active life in London high society for most of the rest of her life, said Lady Colin Campbell, a relative by marriage. “She was certainly a notoriety, but she was never a pariah. People would gossip and say, ‘Oh, look who’s here: Margaret Argyll,’” said Lady Campbell, 72. “But she rose above it, as simple as that. She simply ignored it,” she added.In her later years, when money was running low, the duchess tried again “to convert her fame into income,” Lady Campbell said. In 1986, Margaret published “My Dinner Party Book,” a guide to entertaining, aimed at housewives, that nonetheless included advice like “never invite the Lord Chancellor and two ambassadors to your dinner party at the same time.” (The book did not sell well, Lady Campbell said.)Two years later, at 76, the duchess appeared on “Wogan,” the BBC’s flagship chat show. The presenter, Terry Wogan, trod carefully around the incident that had made her most famous, gently asking, “What about your own story? Your own story was extremely colorful — do you think it would make a good plot?”“Oh, let’s pray not,” the duchess replied. “Let’s not even think about that.” More