The primary gene associated with eye color, called OCA2, encodes a protein known simply as the P protein. This protein sits in the membranes of melanosomes, the tiny cellular factories inside pigment cells where melanin is produced. The amount of P protein your cells make is the single biggest factor in determining whether your eyes are brown, blue, green, or somewhere in between.
What the P Protein Actually Does
The P protein is a membrane transporter with 12 segments that span the wall of the melanosome. Its structure closely resembles known ion transporters, and its main job appears to be controlling the acidity inside melanosomes. This matters because the key enzyme that builds melanin only works properly in an acidic environment. Without functional P protein, melanosomes lose their acidity and melanin production drops to almost nothing.
Research on mice lacking a working copy of the P protein gene illustrates this clearly. In normal pigment cells, about 94% of melanosomes maintain the acidic conditions needed for melanin synthesis. In cells with a mutant, nonfunctional P protein, only 7% to 8% of melanosomes stayed acidic. The result is a dramatic loss of pigment, producing the “pink-eyed dilution” seen in these animals. In humans, complete loss of OCA2 function causes a form of albinism (type 2), while partial reductions in P protein levels produce lighter eye colors.
How P Protein Levels Determine Eye Color
Your eye color is not really about having a “blue eye gene” or a “brown eye gene.” It comes down to how much P protein your pigment cells produce, which in turn controls how much melanin ends up in your iris. Brown eyes contain large amounts of a dark pigment called eumelanin. Green and hazel eyes have moderate amounts. Blue eyes have very little melanin at all.
The biggest genetic switch controlling P protein production isn’t even inside the OCA2 gene itself. It sits in a neighboring gene called HERC2, specifically within a region known as intron 86. A single DNA letter change in this region can dial down OCA2 expression, reducing P protein output and leading to less melanin in the iris. This one variant alone explains most of the difference between blue and brown eyes, and the broader OCA2 region on chromosome 15 accounts for an estimated 74% of all variation in human eye color.
Why Blue Eyes Have No Blue Pigment
Here’s what surprises most people: there is no blue pigment in blue eyes. The iris has two layers. The back layer (the epithelium) contains melanin in everyone regardless of eye color. The front layer (the stroma) is a mesh of colorless collagen fibers. In brown eyes, the stroma also contains melanin, which absorbs most incoming light. In blue eyes, the stroma has no pigment at all.
When light enters a pigment-free stroma, it scatters off the collagen fibers and bounces back out. Shorter blue wavelengths scatter more than longer red ones, producing a blue appearance through the same physics (called the Tyndall effect) that makes the sky look blue. So low P protein production leads to low melanin in the stroma, which leads to structural blue coloring rather than pigment-based coloring. Green eyes fall in the middle: a small amount of melanin in the stroma combines with light scattering to create that intermediate hue.
Eye Color Is Polygenic, but OCA2 Dominates
The old textbook model of eye color as a simple dominant-recessive trait (brown beats blue, end of story) is outdated. Eye color is a polygenic trait, meaning multiple genes contribute. Other genes influence iris patterns, the ratio of different melanin types, and fine details of pigment distribution. Two of these, MITF and PAX6, are thought to affect iris patterns specifically.
Still, OCA2 and its HERC2 regulatory switch are by far the most important players. The two types of melanin in the iris also matter. Eumelanin is the dark brown-black pigment dominant in brown eyes. Pheomelanin is a lighter, reddish-yellow pigment more associated with lighter eye colors. The balance between these two pigments, governed largely by the activity of the P protein and the melanosomes it supports, creates the full spectrum of eye colors seen across human populations.
When P Protein Is Missing Entirely
Mutations that completely knock out OCA2 function cause oculocutaneous albinism type 2, one of the most common forms of albinism worldwide. People with this condition produce very little melanin in their skin, hair, and eyes. Their irises typically appear blue or gray, and the lack of pigment in the eye can cause light sensitivity and vision problems because melanin normally helps absorb stray light inside the eye. Partial loss-of-function variants produce milder effects, contributing to the normal range of lighter eye colors without causing albinism.

