These areas are known as "maria", plural of mare (latin word for "sea"). These are basically vast basaltic plains, formed by volcanic eruptions thousands and milion of years ago. Their darker color with respect to other areas of the moon's surface is due to their iron-rich composition.