Spectrum of the cosmic background radiation between 3 mm and 800 µm