While the South has been label racist lets take a look at our wonderful neighbors to the north!
OHIO
The state had enacted Black Laws in 1804 and 1807 that compelled blacks entering the state to post bond of $500 guaranteeing good behavior and to produce a court paper as proof that they were free.
"No extensive effort was made to enforce the bond requirement" Likwack wrote, "until 1829, when the rapid increase of the Negro population alarmed Cincinnati. The city authorities announced that the Black Laws would be enforced and ordered Negroes to comply or leave within thirty days."
Citizens of the city's "Little Africa" -- largely a ghetto of wooden shacks owned by whites -- appealed for a delay, and sent a delegation to Canada to try to find a place to settle there. But if the authorities were willing to offer more time, the Ohio mob was not, and whites in packs roamed through the black neighborhoods, burning and beating. The delegation came back from Upper Canada with the offer of a safe home from the governor. "Tell the Republicans on your side of the line that we royalists do not know men by their color. Should you come to us you will be entitled to all the privileges of the rest of His Majesty's subjects."
About half of the city's 2,200 blacks left, most of them apparently going to Canada. The proponents of strict enforcement of the Black Laws then discovered that they had driven off "the sober, honest, industrious, and useful portion of the colored population," which lessened "much of the moral restraint ... on the idle and indolent, as well as the profligate" among the rest
Connecticut
Discrimination against free blacks was more severe in Connecticut than in other New England colonies. Their lives were strongly proscribed even before they became numerous. In 1690, the colony forbade blacks and Indians to be on the streets after 9 p.m. It also forbid black "servants" to wander beyond the limits of the towns or places where they belonged without a ticket or pass from their masters or the authorities. A law of 1708, citing frequent fights between slaves and whites, imposed a minimum penalty of 30 lashes on any black who disturbed the peace or who attempted to strike a white person. Even speech was subject to control. By a 1730 law, and black, Indian, or mulatto slave "who uttered or published, about any white person, words which would be actionable if uttered by a free white was, upon conviction before any one assistant or justice of the peace, to be whipped with forty lashes. As early as 1717, citizens of New London in a town meeting voted their objection to free blacks living in the town or owning land anywhere in the colony. That year, the colonial assembly passed a law in accordance with this sentiment, prohibiting free blacks or mulattoes from residing in any town in the colony. It also forbid them to buy land or go into business without the consent of the town. The provisions were retroactive, so that if any black person had managed to buy land, the deed was rendered void, and a black resident of a town, however long he had been there, was now subject to prosecution at the discretion of the selectmen.
Pennsylvania
Pennsylvania laws forbid blacks from gathering in "tippling-houses," carrying arms, or assembling in companies. These, however, were loosely or unevenly enforced. But throughout Pennsylvania colony, the children of free blacks, without exception, were bound out by the local justices of the peace until age 24 (if male) or 21 (if female). All in all, the "free" blacks of colonial Pennsylvania led severely circumscribed lives; they had no control even over their own family arrangements, and they could be put back into servitude for "laziness" or petty crimes, at the mercy of the local authorities.
ILLINOIS, INDIANA
The legal history of the black codes in these two states is essentially similiar, and in fact Illinois simply continued Indiana's code when it organized as a territory.
The new states that entered the union in the North after the gradual emancipation of northern slaves were just as concerned as the old ones with maintaining their racial purity. To do so, they turned to an old practice in the North: the exclusion law. Slaves could not be brought into the Northwest Territories, under the ordinance of 1787, but slaves already there remained in bondage. Once states began to emerge from the old territories, most of them explicitly barred blacks or permitted them only if they could prove their freedom and post bond.
Ohio offered the first example, and those that followed her into the union followed her lead on race.
Both Indiana (1816) and Illinois (1818) abolished slavery by their constitutions. And both followed the Ohio policy of trying to prevent black immigration by passing laws requiring blacks who moved into the state to produce legal documents verifying that they were free and posting bond to guarantee their good behavior. The bond requirements ranged as high as $1,000, which was prohibitive for a black American in those days. Anti-immigration legislation was passed in Illinois in 1819, 1829, and 1853. In Indiana, such laws were enacted in 1831 and 1852. Michigan Territory passed such a law in 1827; Iowa Territory passed one in 1839 and Iowa enacted another in 1851 after it became a state. Oregon Territory passed such a law in 1849.
Ever wonder why the underground Rail Road went to Canada ?