A group of teenagers — trying to capture the perfect selfie on a frozen Central Park pond — had to be rescued Monday evening when they fell through the ice, sources and witnesses said.

#FDNY divers continue to search water in Central Park pic.twitter.com/RzWJRuF8oN — FDNY (@FDNY) February 20, 2017

“The kids were playing,” recalled Maia Ramirez, a tourist who is visiting from Paraguay.

“They were breaking the ice,” she told The Post. “Some were like, ‘No, it’s dangerous’ and [others] were like, ‘No, let’s [walk on the ice].’ So after that, they all got on together and said, ‘Let’s take a selfie.’ But when they all went together, it broke and they all went down.”

At least seven teenage boys, ages 15 and 16, fell into the off-limits pond near 59th Street and Fifth Avenue around 5:55 p.m. while attempting to take photographs of themselves, according to FDNY officials.

The group had been horsing around on the thin ice before deciding to snap the selfie, witnesses said.

“They were just being kids,” FDNY Deputy Chief John Scof explained during a press conference.

“I think after tonight we can reinforce to the people that playing on ice is not a good idea,” he said. “[The teens] are all okay. They are suffering from some mild hypothermia.”

Officials told The Post that a trio of good Samaritans quickly jumped into the freezing cold water to save the teens — before having to be plucked out themselves.

None of the boys was with their parents at the time of the incident. All seven of them were taken to local hospitals on stretchers after being treated at the scene for hypothermia, officials said.

“I was very scared about what would happen,” Ramirez said. “There was one [boy] who, from the very first minute he went down, he didn’t come back up.”

Fire officials said the pond water on Monday night was brutally cold as temperatures dipped back down into the 40s.

“It was freezing,” Schof said. “[But] they are all fine.”

Selfie-obsessed folks have ultimately been getting into a lot trouble lately.

A study published last year found that at least 127 people have died since 2014 while trying to take pictures of themselves.

One of the most recent incidents came on Feb. 6 — when a 21-year-old German tourist in New Zealand drowned after trying to snap a selfie on the Waikato River with her friends, just as a nearby dam’s floodgates were opening.

The craze has also been the source of several social media controversies over the years.

In the days after the East Village gas explosion in March 2015, numerous residents lined up outside the blast site — where two people died and 25 more were injured — to snap pictures of themselves, even as rescuers continued to search for life in the ruins. The photos wound up sparking widespread outrage online.

In January 2016, a couple was blasted on social media after they snapped a selfie in front of a burning skyscraper in Dubai. At least 14 people were hurt in the fire.

Additional reporting by Larry Celona and Shawn Cohen