I answer that, As stated above, there belong to the natural law, first, certain most general precepts, that are known to all; and secondly, certain secondary and more detailed precepts, which are, as it were, conclusions following closely from first principles. As to those general principles, the natural law, in the abstract, can nowise be blotted out from men’s hearts. But it is blotted out in the case of a particular action, in so far as reason is hindered from applying the general principle to a particular point of practice, on account of concupiscence or some other passion, as stated above. But as to the other, i.e. the secondary precepts, the natural law can be blotted out from the human heart, either by evil persuasions, just as in speculative matters errors occur in respect of necessary conclusions; or by vicious customs and corrupt habits, as among some men, theft, and even unnatural vices, as the Apostle states (Rom. i), were not esteemed sinful.
(source: Summa Theologica)