The 3rd level spell Sending can possibly contact the dead, with some caveats. Of course, the dead person or creature in question would have to be familiar to you, but dead beings that have successfully moved on are not usually considered “creatures” in the typical sense, so while you could contact a ghost or spirit that was haunting a location, reaching out to dearly departed Uncle Radmir may not be viable. But since the spell carries a 5% chance of success for beings on “other planes”, the DM could always rule that the afterlife meets that definition and let you give it a shot, perhaps with special penalties of some kind.