via
https://en.wikipedia.org/wiki/Color_blindness#Red-green_colo...
[1]https://ghr.nlm.nih.gov/chromosome/X
(There are some genetic disorders where an organism have 3 of one chromosome. Trisomy its called.)
Which X is inactive is somewhat random however so it seems that it reduces the instance of color blindness.
The thing is, these genes are in XY chromosome in males, and thus we only have a single copy for each of these genes. Women have two copies of each gene, so even if one goes wrong, the remaining one can express the cones.
Funny thing is woman with a defective gen usually just goes unnoticed, but the defective gen in some cases can express a fourth kind of cone with a peak sensitivity between M and L cones, allowing them to perceive colors that usual humans can't perceive.