Blue eyes came about via a genetic mutation that affects the OCA2 gene. Everyone had brown eyes 6,000 to 10,000 years ago. Then a mutation in the gene reduced the production of melanin in the iris. Voila, blue eyes.
The theory is that everyone with blue eyes has one common ancestor. So if you have blue eyes as I do, we are related! (Sort of.) 🙂