It was Samuelsson's first game back after being out since late January with a broken bone in his foot. Pavel Datsyuk had a goal and an assist, and Brett Lebda also scored for Detroit. Dominik Hasek, who returned after missing three games with tightness in his thigh, made 24 saves.
Raitis Ivanans and Brian Willsie scored for Los Angeles, and Sean Burke stopped 51 shots.
Samuelsson tipped in a pass from Datsyuk on a 2-on-1 break for the game-winner.
Lebda tied the game at 2 with 5:58 left in the third period off an end-to-end rush on which he cut around Kevin Dallman off the left wing, and flipped a shot in off Burke. Hasek, who left the puck for Lebda behind the Detroit net, got the lone assist.
The Red Wings outshot the Kings 26-4 in the third period.
Datsyuk tied the game at 1 for Detroit with 5:56 left in the second period on his 21st goal. He put a loose puck in off Burke's skate.
Willsie gave the Kings a 2-1 lead just 27 seconds later when he batted a rebound past Hasek.
Los Angeles opened the scoring on Ivanans' goal with 8:44 left in the first period. He put in the rebound of John Zeiler's shot after Zeiler had picked the puck up off a turnover by Detroit defenceman Niklas Kronwall.