Skinny jeans are the new pepper spray for hipsters.

Three would-be muggers were thwarted from stealing a new iPhone 6 and a wallet from their fashion-forward victim — because his black jeans were so tight, the crooks couldn’t pry the goods from his pockets.

Architect German Sent, 27, said the trio threw him to the ground as he walked home from the Halsey Street subway station in Bushwick at about 5 a.m. on Sept. 1.

They were foiled by a denim defense system as fortified as Fort Knox: his painted-on, size 30 black Kenneth Cole jeans.

“They couldn’t even get a finger in my pocket,” Sent told The Post on Saturday.

“They were just arguing amongst themselves . . . like, ‘Get into his front pocket! Get into his left pocket!’ And the other would say, ‘I can’t get it! I can’t!’ ”

Frustrated and defeated, the trio ran off.

Sent’s first, odd thought during the beatdown was, “I’m glad I put these jeans on today, because they’re really saving all my stuff right now,” he said.

“It was kind of hilarious and scary at the same time.”