The trilby hat got its name from a play titled 'Trilby' based on George du Maurier's novel. While the hat existed before, it gained popularity and its moniker from the play's character who wore it.