In 3D + time numerical simulations, we study the wavelength scaling law for the energy of terahertz (THz) radiation emitted from a two-color femtosecond filament, which forms during cofocusing into air the fundamental and second harmonics of the laser pulse. In our simulations, the central wavelength of the fundamental harmonic varied from 0.8 to 8 μm and the numerical aperture varied from 0.006 to 0.03. While the harmonics and supercontinuum development are not extreme, so the harmonics spectra are clearly separated, the energy of the generated THz radiation is proportional to the oscillation energy of the electrons, which grows as the squared pump wavelength, and the total number of free electrons in the filament, which decreases quasi-exponentially with the pump wavelength. As a result, the scaling law for the THz energy on the pump wavelength is nonmonotonic with the maximum at 1.6–4 μm depending on the focusing conditions.