Tricorn hat is a cosmetic head-slot reward from the Trouble Brewing minigame. It can be purchased from Honest Jimmy's House of Stuff for 500 Pieces of eight. It cannot be resold to the shop.
Tricorn hats can be stored in the Player owned house Costume room along with a Naval shirt and Navy slacks of the same colour. They come in 7 different colours.