Pesto can darken due to oxidation. To prevent this, top it with a layer of olive oil before storing it in the fridge.