They're called sashimono and they were usually used as uniforms for bigger armies and battles (since almost no samurai wore matching armour). Honestly, though, since samurai were usually very keen on their families and clans and affiliation, they'd probably wear them in everything except covert action.