For they have taken some of their daughters as wives for themselves and their sons, so that the holy seed is intermingled with the peoples of those lands.Indeed, the hand of the leaders and rulers has been foremost in this trespass." (Ezra 9:1-2).You will notice God was dealing with nations, not skin color.
You can not read in the Bible of any curse God placed on Ham.
However, you can read of the curse Noah put on Canaan, one of the sons of Ham (Gen. Ham had three other sons: Mizraim, Cush and Put (Gen. It was the descendants of Cush, not Canaan, who settled in Africa.
Yet among many nations there was no king like him, who was beloved of his God; and God made him king over all Israel.
Nevertheless pagan women caused even him to sin." (Neh. After returning from Babylonian captivity, the leaders of the people went to Ezra and said, "The people of Israel and the priests and the Levites have not separated themselves from the peoples of the lands, with respect to the abominations of the Canaanites, the Hittites, the Perizzites, the Jebusites, the Ammonites, the Moabites, the Egyptians, and the Amorites.
One of the passages they like to (mis)quote is Deuteronomy 7:1-4, "When the Lord your God brings you into the land which you go to possess, and has cast out many nations before you, the Hittites and the Girgashites and the Amorites and the Canaanites and the Perizzites and the Hivites and the Jebusites, seven nations greater and mightier than you, and when the Lord your God delivers them over to you, you shall conquer them and utterly destroy them.