Literary / news register — you'll see it in headlines about wrongful convictions ('
含冤25
年,
他终获无罪判决'), historical writing about purges, and ghost stories where the dead
含冤而死 ('died bearing an injustice') and become haunting spirits. Compare with the milder
委屈 (wěiqu, 'feel wronged'), which is for everyday 'unfairness' rather than legal injustice.