There are many explanations for the blue color in Safed. For example. Blue serves as a virtue against the evil eye. See other reasons in the Blue Color in the Safed section.