If you know the original paint brand, color, and sheen, buy the same one. If you don’t, use a sharp razor to scrape or cut off some paint from a hidden part of the wall, and take it to a paint store to get a color match, or use an app that will do it for you.