Which group wore the gray uniforms in the Civil War?

The group who wore the gray uniforms were the Confederates from the south. The Union soldiers of the north wore the blue uniforms.