Excellent question! The colors on airport scanner displays (both for carry-on baggage and full-body scanners) are a simplified code to help security officers quickly identify potential threats. The meaning is slightly different for the two main types of scanners.
These are the machines your suitcase or backpack goes through on the conveyor belt. The colors represent the density and atomic number of the materials inside.
Orange/Red/Brown: Typically indicates organic materials. These are mid-density, mid-atomic number items.
Blue/Green: Indicates metallic, dense, or high-atomic number materials.
Black: Represents the least dense areas or empty space that the X-rays pass through easily.
How Security Uses It: An officer looks for anomalies—for example, a dense blue block (a battery) inside an orange mass (clothing in a suitcase) is normal. But an organic (orange) mass with wires (thin blue lines) attached in an unusual shape would require the bag to be searched.