Seen in Attack of the Clones
Clone trooper armor is marked with color-coded flashes. At the beginning of the Clone Wars, the colors signify rank (red for captains, blue for lieutenants, green for sergeants). By the end of the war, the flashes come to identify specialized units such as the Galactic Marines and shock troopers.