My answer to a previous question may help you:
While from the title it's clearly not just about the color-coding, today's color-coding is a result of the ideological changes concerning how much gender-differentiation was considered appropriate for children in the past.