My question is somewhat creepy. If a person is at the beach, lying in the sun, and dies, will his body continue to become more tanned?
(Eww... I know.)
When the body dies, your cells don't immediately stop your metabolism winds down over a short time. Tannig involves production of melanin in cells in the skin, and so would probably continue for a little while after death.