Once upon a time I needed to replace one color to another in more then 300 elements in one file. It could take me more than one working day to manually select and recolor all the elements with the same color.
But I found a decision.
I googled and found a nice plugin for Adobe XD – Select same colors.
Simply choose an element, choose one input color and output color and then choose artboards where you want to replace colors. That’s it 🙂