This is the definition of blasphemy.
If it is profane act. utterance, or writing against a sacred entity I.E God for example. It is blasphemy.
Also in another example the devil calming for himself the attributes and rights of God was blasphemy.
Blasphemy
A contemptuous or profane act...