A Hawaiian man bizarrely wore blackface to court, where he was jailed for life — claiming the offensive get-up was a protest at being “treated like a black man.”

Mark Char stunned the court in Honolulu on Monday when he arrived to be sentenced for a vicious road-rage attack wearing standard orange prison fatigues but with his head completely blackened.

“I prepared myself to play my part in your kangaroo court, treating me like a black man — so today I’m gonna be a black man,” he told Judge Todd Eddins in an almost three-minute rant complaining about unfair treatment and his “incompetent” lawyer, according to Hawaii News Now.

Char is believed to have used a permanent marker for the vile stunt, law enforcement sources told the TV station.

“This continues a pattern of disruptive behavior designed to undermine the administration of justice,” the judge complained.

Char was found guilty in March of attempted murder and assault for stabbing three men when he was cut off on a freeway in 2016. One of the victims was stabbed five times and almost died, the court heard.

However, Char always maintained he only acted in self-defense after being chased and beaten up by the younger man he ended up stabbing.

He was sentenced to life in prison with the possibility of parole, based on prosecutors’ recommendations, according to the report.