Custodial violence remains one of the gravest affronts to the rule of law. The State is vested with coercive powers to investigate crime. However, such powers can never extend to infliction of torture, the Madurai Bench of the Madras High Court has said.