First change your InDesign preferences to Display and Output All Blacks Accurately under Appearance of Black.
Then, if using the CMYK blend space, use a rich black. There are many “recipes” but I use 60C, 40M, 40Y, and 100K. (You could also open Photoshop and take a reading of the background but you need to make sure you are not going over the total ink coverage (TIC) for the method of printing and paper type.)
David Creamer: Community Expert (ACI and ACE 1995-2023)
Likely this is what is called Yucky Discolored Box Syndrome.
Make sure you are placing RGB graphics into an InDesign document that is Edit > Transparency Blend Space > RGB.
If that doesn’t fix it; export to PDF using a custom Transparency Flattener set to all pixel; not any vector. See Edit > Transparency Flattener Presets > New… and after making an all-pixel flattener, invoke it in the Export PDF (print) dialog box.