An optical system for an endoscope includes an objective and a reversal system arranged after the objective. The reversal system includes at least one reversal stage for projecting the distal intermediate image as a proximal intermediate image into a proximal intermediate image plane. The reversal system imprints on the proximal intermediate image a first longitudinal chromatic aberration referred to a predetermined wavelength from the visible spectrum and a predetermined wavelength from the near infrared range. The objective imprints on the distal intermediate image a second longitudinal chromatic aberration referred to the predetermined wavelength from the visible spectrum and the predetermined wavelength from the near infrared range. The second longitudinal chromatic aberration has the opposite sign relative to the first longitudinal chromatic aberration, which reduces the longitudinal chromatic aberration caused by the reversal system in the proximal intermediate image.