It seems that there are a number of concerns here.
If colored hair was taboo, it should have be written in the Code of Conduct. Was your child the only one to have his hair washed? If the school decided to enact a policy about colored hair after the Code of Conduct was printed, was a letter...