missed by a hair

Missed by a hair is an idiom which refers to just barely missing something. One single strand of hair is extremely fine so that it works well as a way to exaggerate how close you missed something, just as missing the finish line in a race or almost winning a competition. A person who misses something by a hair is typically the second in line or possibly won by just one single vote which shows how closely it was missed.