Using Gimp can I make all the black pixels with RGB(0,0,0) into blue pixels with RGB(0,0,255)?

  • Posting a comment since I don't have enough reputation to post an answer : I made a guide on an image here, using the "mode" setting of layers in order to replace black by another color.
    – sodimel
    Jul 23, 2021 at 10:22

2 Answers 2


Another way is to use the Color Exchange function.

Which is located under Colors > Map > Color Exchange and then either select the color from the preview picture using the color picker tool or just define the color to replace and the new color manually.

Here is the documentation page for that function.

  • 1
    How do I change all colors to a single & specific color?
    – Dor
    Jan 11, 2017 at 18:52
  • 2
    Note: The image should be in RGB mode Image->Mode->RGB
    – Opsse
    May 7, 2019 at 13:06
  • Very important to switch the image mode. Also if you have just two colors, switching mode to indexed after the replacement also saves you a lot of bytes. Mar 9, 2020 at 16:58

Replacing a colour can be done like this:

  1. Activate the "Select by colour" tool:

    enter image description here

    • In the tool options, choose a threshold (0 if you want it to be precisely rgb(0,0,0))
  2. Click on a black pixel

  3. Select your new colour and drag it onto the image


Not the answer you're looking for? Browse other questions tagged or ask your own question.