Question: why did democrats and republicans switch colors?
Answer: Later, in the 1888 presidential election, Grover Cleveland and Benjamin Harrison used maps that coded blue for the Republicans, the color perceived to represent the Union and "Lincoln's Party", and red for the Democrats.