Eye color is the result of variations in the amount of melanin, a pigment found in the front part of iris of the eye. Scientist have even found the key gene OCA2, which explains why some people have brown and some people have blue eyes. Typically a person's eye color becomes permanent after 3 years of birth.