Each state had different color facings as well to identify what state was which. That ended up carrying over as branch colors for Army units after the war. Branch colors are still worn by officers on their dress uniforms but not by enlisted soldiers outside of the infantry who add a blue disk around their branch insignia.
Each state regiment in the Continental army had different colors for the linings, buttons and facings:
New Hampshire, Rhode Island, Connecticut and Massachusetts soldiers wore white facings, linings and buttons.
New York and New Jersey soldiers wore buff facings with white linings and buttons.
Pennsylvania, Delaware, Maryland and Virginia soldiers wore red facings with white linings and buttons.
North Carolina, South Carolina and Georgia soldiers wore blue facings with white linings and buttons.
Light Dragoons wore blue coats with white facings.
According to an article titled “Guide to Military Uniforms” on military.com, the reason blue was chosen for the Continental Army uniforms was because it was in direct contrast to the British Army’s red uniforms.
In addition to the blue coats, the Continental army also wore white, off-white or beige waistcoats, breeches and long-sleeved hunting shirts, black tricorne hats, white stockings and black or dark shoes with buckles.
The reason that the Patriots wore red to begin with though, was that in an 8 team league, there would have been 5 teams in blue jerseys if they didn't wear red (New York Titans, Buffalo, Houston and San Diego). Instead two teams wore red and four teams had blue until the Titans changed to the Jets and wore green.