Hero cops brought a jogger back from the brink of death in Central Park yesterday – using a defibrillator to revive the man, who was in cardiac arrest and “blue, almost the color of our shirts.”

The jogger they resuscitated – aided by a doctor in the park who along with them gave CPR – was taken by medics to Lenox Hill Hospital.

The man, who carried no identification, is believed to be in his 50s. He was in critical but stable condition and breathing on his own, cops said.

The life-and-death drama began with his collapse at about 12:30 p.m. on the south end of the reservoir jogging path.

A woman jogger ran to the park’s station house in a frantic cry for help. When Officers Laura Bolak and Vanessa Bragg got there, a woman, who identified herself as a doctor, was already giving cardiopulmonary resuscitation.

“When we showed up, he was blue. I was like, I think he’s dead,” said Bolak. “When I checked for a pulse and a heartbeat, he had none.”

She started chest compressions, while someone else did mouth-to-mouth and Bragg, recalling there was a defibrillator in their car, put out a radio call for someone trained to use it..

Officer Carlos Medina, 33, who was in the stationhouse, and just months ago trained to use defibrillators, sprinted to the scene.

“I attached the defibrillator. It is automated and kind of does its own thing,” he said, adding that he did mouth-to-mouth while Bolak alternated with the doctor in doing chest compressions.

“We had gone through a couple of cycles and the machine said he needed to be shocked,” Medina said. “We shocked him. We got no response, no breathing.

“We continued CPR and the machine said he needed to be shocked again. He was blue, almost the color of our shirts.

“Then the machine shocked him for the second time, and he started to regain his color and there was very shallow breathing. A few seconds later, the paramedics showed up.”

“The defibrillator saved his life,” said Bragg, a 19-year veteran.

“It really did,” said Bolak. I didn’t think he was going to make it.”

When the jogger began breathing, “I thought, ah, thank God,” she said.

Medina said getting the defibrillator training was “one of the most positive things I’ve ever done.”