“I certainly know that my playing career is far from over and my hope is that with the backing of Cricket South Africa, Cape Cobras, teammates, family, friends and supporters, I will be given the opportunity to continue to give my very best to the sport that I love dearly,” said Duminy.
“But after long and careful deliberation, I have decided to retire from first-class and Test match cricket with immediate effect. I have thoroughly enjoyed the privilege and opportunity to represent my country in 46 Tests and the Cape Cobras in 108 first-class matches over the last 16 years.”
Duminy, 33, has been a senior member of the Proteas' Test squad. He made his debut in 2008 against Australia.
His maiden series Down Under set the stage for two of his career highlights, with the left-hander scoring an unbeaten half-century at the Waca before notching up 166 in the second Test at the MCG.
Duminy will continue to play one-day and T20 cricket for the Cobras and Proteas.
He will also lead the Cape Town Knight Riders in the inaugural Global T20 League this season.
His last Test was the series opener against England at Lord’s earlier this year.