Catechism:
1859 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 heart133 do not diminish, but rather increase, the voluntary character of a sin.
1860 Unintentional ignorance can diminish or even remove the imputability of a grave offense. But no one is deemed to be ignorant of the principles of the moral law, which are written in the conscience of every man. The promptings of feelings and passions can also diminish the voluntary and free character of the offense, as can external pressures or pathological disorders. Sin committed through malice, by deliberate choice of evil, is the gravest.
scborromeo.org/ccc/p3s1c1a8.htm#IV
1791 This ignorance can often be imputed to personal responsibility. This is the case when a man "takes little trouble to find out what is true and good, or when conscience is by degrees almost blinded through the habit of committing sin."59 In such cases, the person is culpable for the evil he commits.
1793 If - on the contrary - the ignorance is invincible, or the moral subject is not responsible for his erroneous judgment, the evil committed by the person cannot be imputed to him. It remains no less an evil, a privation, a disorder. One must therefore work to correct the errors of moral conscience.
Natural Moral Law:
scborromeo.org/ccc/p3s1c3a1.htm#1957
Compendium issued by Pope Benedict XVI
416. In what does the natural moral law consist?
1954-1960
1978-1979
The natural law which is inscribed by the Creator on the heart of every person consists in a participation in the wisdom and the goodness of God. It expresses that original moral sense which enables one to discern by reason the good and the bad. It is universal and immutable and determines the basis of the duties and fundamental rights of the person as well as those of the human community and civil law.
**
417. Is such a law perceived by everyone?**
1960
Because of sin the natural law is not always perceived nor is it recognized by everyone with equal clarity and immediacy.
vatican.va/archive/compendium_ccc/documents/archive_2005_compendium-ccc_en.html