Avoid machine washing and drying, which can alter the shape of the hat.
Soak in warm water with laundry detergent or OxiClean (a stain remover) added. Spot clean as needed with a toothbrush. You may add shampoo to the toothbrush as you scrub out stains. Go gentle on stitched seams. Rinse out soap and air dry.