Fetching details from the dictionary...

to be contrary (to); to go against; to run counter (to); to contradict; to be opposite (to)
to infringe; to violate; to transgress
to disobey (an order, teachings, etc.); to defy; to rebel; to revolt
彼の行動は会社の方針に反している。
His actions go against the company policy.
法律に反する行為は厳しく罰せられる。
Acts that violate the law are severely punished.
当初の予想に反して試験は簡単だった。
Contrary to expectations, the exam was easy.