Hi all

How would you translate the following phrase:
'I would never dream of judging a person by the colour of their skin.'
It seems idiomatic. But, here's my attempt:
Je ne rêverais jamais de juger quelqu'un par le couleur de sa peau'
Thanks in advance.