Dark Heresy is a role-playing game published by Black Industries in 2008 that uses the Warhammer 40,000 Roleplay system. A second edition was published in 2014 under Fantasy Flight Games. From Wikipedia
The narrative-driven CRPG follows players as Imperial Inquisitors investigating heresy, with new mechanics and a darker, detective-oriented focus.