 These boron impurities change the diamond's color to slightly blue.Likewise, the only difference between ruby and sapphire is the type of impurities present in a corundum crystal.In semiconductors, a special type of impurity, called a dopant, drastically changes the crystal's electrical properties.