A problem in dyeing fabrics is the degree of fastness of the dye to the
fabric. Many of the early dyes were surface dyes; that is, they did not bond
to the fabric, with the result that they tended to wash off after repeated
laundering. Indigo, for example, which gives the blue color to blue jeans, is
a surface dye. Color fastness can be obtained by bonding a dye to the fabric.
The first such dyes were the so-called reactive dyes, developed in the 1930 s
for covalently bonding dyes containing - \(\mathrm{NH}_{2}\) groups to cotton,
wool, and silk fabrics. In the first stage of the first-developed method for
reactive dyeing, the dye is treated with cyanuric chloride, which links to the
fabric through the amino group of the dye. The remaining chlorines are then
displaced by the \(-\mathrm{OH}\) groups of cotton (cellulose) or the -
\(\mathrm{NH}_{2}\) groups of wool or silk (both proteins). Propose a mechanism
for the displacement of a chlorine from cyanuric chloride by (a) the
\(\mathrm{NH}_{2}\) group of a dye and (b) by an - \(\mathrm{OH}\) group of
cotton.