So the Israelis served Cushan-rishathaim for eight years.6.
When his uncle tricked Jacob into marrying Rachel's older sister, Leah, Jacob agreed to work another seven years to have Rachel.
And he said to him, "You shall not take a wife of the daughters of Canaan. Arise, go to Padan Aram, to the house of Bethuel your mother's father.
And take a wife from there of the daughters of Laban your mother's brother" (Genesis 28:1 - 2, HBFV)The narrative jumps to Genesis 29 where Jacob fell head over heels in love with his cousin Rachel.
However, the reason for this command was not skin color or ethnicity. The reason God commanded against interracial marriage for the Jews was that people of other races were worshippers of false gods.
The Israelites would be led astray from God if they intermarried with idol worshippers, pagans, or heathens.