Designers and historians size up the “hats-not-encouraged” dress code.