contrary to vs in contravention of

contrary to

prep
  • despite; in opposition to (an assumption, etc.); differently from 

in contravention of

How often have the words contrary to and in contravention of occurred in a corpus of books? (source: Google Ngram Viewer )