From the Shorter Catechism

Q. 14. What is sin?

A. Sin is any want of conformity unto, or transgression of, the law of God. 1 John 3:4.