When Jewish refugees fleeing the Spanish Inquisition settled in Chefchauoen, they wanted the buildings and streets to mirror the sky so they could be reminded of God.
The burial man of Egyptian Pharaoh Tutankhamen
Blue for the Ancient Egyptians was associated with the life-giving Nile River
and with the heavens and thus the realm of the gods.
source is cnn.com