Mortal sin requires full knowledge and complete consent. It presupposes knowledge of the sinful character of the act, of its opposition to God's law. It also implies a consent sufficiently deliberate to be a personal choice. Feigned ignorance and hardness of heart do not diminish, but rather increase, the voluntary character of a sin.
Source: Catechism of the Catholic Church (Vatican.va)