Why did the union soldiers of the American Civil War west blue?

that was the color of the American soldiers prior to the civil war