We use observations from the Giant Metrewave Radio Telescope (GMRT) to measure the atomic hydrogen gas content of star-forming galaxies at z = 0.24 (i.e. a look-backtime of ~3 Gyr). To measure the HI 21 cm emission signal we stack the signal from 121 galaxies with known optical positions and redshifts. We find an average HI mass for the galaxies of (2.26 ± 0.90) × 109 M⊙. We translate this HI measurement into a cosmic density of neutral gas at z=0.24 of Ωgas = (0.91 ± 0.42) × 10−3. This value is consistent with that estimated from damped Lyα systems around this redshift.