How do I make the ground change color under my player

Hey, I’m trying to make a game here, but I came to a problem. I don’t know how I can, for example, if my player walks over a white box, the box will go from white to blue at contact. How can I make this happen? A screenshot will also help tons!