A country can hardly be racist: a country has no opinions. It is made up of many people, with as many shades of opinion and attitude.
With that slight correction, your question is an interesting one. The answer is, as so often, that it all depends.
Among the millions who lived here, there were probably fewer racists than there are now, since many (perhaps most) of them lived lives which did not bring them into contact with those of other races. For most of the 19thC a farm or mill-worker, a clerk in a lawyer's office in Birmingham or York would see very few, probably no, outsiders, even from his own country. Therefore he would not think much about Africans or Chinese; he might be only vaguely aware of their existence.
Where they did come into contact, attitudes varied enormously. Until the Indian Mutiny spoiled things, many British (soldiers and civilians alike, and of all classes) who worked in India made Indian friends, adopted Indian food, took Indian wives and raised families of mixed race. Arthur Wellesley (later the Duke of Wellington), for instance, had a best friend who was Indian and fostered (leaving money in trust for his education after Wellesley returned to Britain) the son of an Indian enemy who had died in battle against the British. After the mutiny, and unsurprisingly, racist attitudes among the British became commoner. It became usual to refer to Indians as 'nig gers', which the Indians, themselves often intensely racist, naturally resented.
Jews were widely accepted among the upper classes; lower-class Jews often met hostility from the natives whose urban areas they were colonising. There is a parallel here with the similar reactions to Asians today.
Africans came into a different category. The slave trade was illegal for most of the 19thC, and those (the majority of the British natives who thought about it at all) who opposed slavery naturally had positive feelings towards the black men and women whose cause they supported. Nonetheless, those who had taken part in the slave trade, and there were quite a lot of them, could hardly have shared those feelings, any more than a slaughterman can empathise with sheep. There were of course (and this is an attitude scarcely met with today) those for whom race was irrelevant: about as interesting as hair colour. In 'Sanditon' Jane Austen introduces a young woman clearly intended to be a main sympathetic character as being 'mulatto, tender and chilly.' There were of course black people in Britain, and I have seen no evidence that they were generally discriminated against: for instance (in the late 18thC) Francis Barber, Samuel Johnson's black manservant, married a white girl with the hearty consent of her family; I have met a distant descendant of this union - though of course the African genes are now diluted to the point where there is no trace in her complexion nor in that of her children of African colouring.
It's a complicated picture. A good question, though: please accept a star.