I'm not a Gimp user, but if you have a gradient overlay filter or effect, that would probably be the way I'd do it. Set up a gradient with your three desired colors and no interpolation (so that there is a sharp dividing line between each color). Then it's just a matter of moving the divisions around so that they hit the values you want.