gallows' humor

[gallows' humor] {n. phr.} Bitter joke(s) that make fun of a veryserious matter, e.g. death, imprisonment, etc.

When the criminalwas led to the electric chair on Monday morning, he said, "Nice way tostart the week, eh?"