bluecoat (n.)

1580s, "serving man in the house of an English country gentleman," from blue (adj.1) + coat (n.). By 1965 as "Union soldier in the U.S. Civil War."