I think we sometimes forget how powerful was the re-writing of history and myths by the Victorians.
In that era little boys were dressed in pink as a signifier towards wearing full blooded red as soldiers and huntsmen (ie middle class fashionistaa).
Blue for girls was thought to be older and more related to images of the Virgin Mary. But again as these were mainly recent european interpretations, not real reflections.
Pink and frilly for girls came in after WWII when there was a huge push to get women back into the home and return jobs to men. Hollywood played a huge part in that.
Which was then subverted by the slightly less prim Brigette Bardour in France.
And at that time no "respectable" woman would wear red (tut, tutno better than she ought) so it is about social control.
And now we may not have social control but we do have mass marketing. And I suggest many of these stories about which colours children prefer and so on are just made up stats by advertisers.
And even if earlier myths about colour were ridiculous, they were effectively an historical record of which cultures and classes have power at any period.
Though as the vast majority of people would be too poor to every have these concerns, all slightly irrelevant.