It seems a little unfair. The ladies love blue eyes, and babies already have a cuteness advantage. The iris is the muscular ring around the pupil. And its color depends on a protein called melanin ...
So a baby's eyes may appear blue while they're developing melanin but darken as the melanin increases in their irises. That's why eye color change typically goes from light to dark and won't reverse.