It all depends on the search, as this was on the first page for me..
The thing to remember about hats back when they were worn regularly is that hats weren't (just) style accessories, they were worn for a reason (to keep sun off the head and out of the eyes, to keep the rain away). While there were certain elements of style involved (Like top hat and tails anyone?), they were like coats. A coat (or overcoat, if you prefer) could fit in with a look but once you went indoors, it was dispensed with until you went back out.
Which is something most modern-day hat wearers (and coat wearers) have trouble with as there aren't very many places a person can put a hat anymore and not lose it.
If I wear a hat, its typicaly a baseball cap and its to keep the sun out of my eyes and from beating down on the top of my head where my hair is thinner and more prone to the sun's rays. But I've been looking into getting some other hat to wear as baseball caps don't work with a tie.