Palak paneer may turn brown due to overcooking or oxidation of the spinach. It is recommended to blanch the spinach before cooking to prevent discolouration. Adding a pinch of salt to the spinach can also help retain its green colour. Your palak paneer may turn brown if you cooked in a cast-iron pan or you kept the dish uncovered for a long time which causes oxidation.