The victory allowed Ivory Coast to finish its World Cup experience with a 1-2-0 record and third place in Group C. Serbia lost all three of its games, including two one-goal defeats. Both teams had been eliminated from advancing to the second round before Wednesday's game.
Serbia got its first two goals of the tournament in the game's first 20 minutes before Dindane brought Ivory Coast back.
He cut the deficit to 2-1 in the 37th minute on a penalty shot after Serbia was called for a hand ball, and tied the score in the 67th minute by converting a crossing pass from Kader Keita for his fourth goal of the World Cup.
Bonaventure Kalou gave Ivory Coast the lead in the 84th minute on a penalty shot.
Serbia's goals came from Nikola Zigic and Sasa Ilic, who both slipped Ivory Coast defenders before sending off their shots.
Notable deaths of 2014 [PHOTOS]
Michael Sam cut from the Dallas Cowboys