We evaluated electronic structures and magnetic moments in Co3FeN epitaxial films on SrTiO3(001). The experimentally obtained hard x-ray photoemission spectra of the Co3FeN film have a good agreement with those calculated. Site averaged spin magnetic moments deduced by x-ray magnetic circular dichroism were 1.52 μ B per Co atom and 2.08 μ B per Fe atom at 100 K. They are close to those of Co4N and Fe4N, respectively, implying that the Co and Fe atoms randomly occupy the corner and face-centered sites in the Co3FeN unit cell.