TOS had an episode on the absurdity of racism. Two men from a planet whose people are out to destroy each other end up on the Enterprise. Their vendetta is motivated by superficial racial differences -- one is black on the left side of his body and white on the right, while the other has the colors reversed.