A one-bit bitmap has a deliberately limited palette
XBM is a simple monochrome image representation often associated with older interface graphics. It does not contain the continuous color range of a photograph, so a PNG copy will reflect the limited source rather than add shades that were never encoded.
Some viewers map foreground and background bits to different colors. Confirm the intended appearance and avoid interpreting a transparent or inverted preview as a problem without checking the source convention.