This is a repost on a closed topic because that topic didn’t actually contain the correct answer.
If you are having this problem, go into shading and navigate over to the “colour pallette.png” properties that you added to your material.
Where it says “linear,” click the dropdown menu and change that to “closest.” This will make all of your colours accurate instead of blended/averaged from nearest points as appears to be the default.