Moral inversion
A moral inversion was a sociological phenomena in which a society's concepts of right and wrong had traded places with each other.
In 2268, Spock was unable to find a parallel to the Iotian society in USS Enterprise's computer, specifically one where a moral inversion such as theirs had occurred. (TOS: "A Piece of the Action")