The NADPH oxidase enzymes Nox2 and 4, are important generators of Reactive oxygen species (ROS). These enzymes are abundantly expressed in cardiomyocytes and have been implicated in ischemia–reperfusion injury. Previous attempts with full inhibition of their activity using genetically modified animals have shown variable results, suggesting that a selective and graded inhibition could be a more relevant approach. We have, using chemical library screening, identified a new compound (GLX481304) which inhibits Nox 2 and 4 (with IC50 values of 1.25 µM) without general antioxidant effects or inhibitory effects on Nox 1. The compound inhibits ROS production in isolated mouse cardiomyocytes and improves cardiomyocyte contractility and contraction of whole retrogradely (Langendorff) perfused hearts after a global ischemia period. We conclude that a pharmacological and partial inhibition of ROS production by inhibition of Nox 2 and 4 is beneficial for recovery after ischemia reperfusion and might be a promising venue for treatment of ischemic injury to the heart.