Changing color of a part of an object
First make sure you are in 'Display material preview mode'

add new material to the object via '+' button.

Go to edit mode. Select the desired faces.

Select the desired material, click assign.

Done!