if anything vs on the contrary

if anything

adv
  • Used to suggest or state tentatively that something may be the case (often the opposite of something previously implied). 

  • Used in questions when the speaker does not know for sure if the listener will have an answer. 

on the contrary

prep
  • Opposite of what had earlier been expected or assumed. 

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