Definition of cosmic irony in US English:

cosmic irony

noun

Literary Criticism
  • Incongruity between human intentions or expectations and the actual outcome of events, as seemingly orchestrated by fate or providence; the use of such incongruity as a literary device.

Origin

Early 20th century; earliest use found in The Atlantic Monthly.