We report measurements of K-shell fluorescence lines induced by fast electrons in ramp-compressed Co targets. The fluorescence emission was stimulated by fast electrons generated through short-pulse laser-solid interaction with an Al target layer. Compression up to 2.1× solid density was achieved while maintaining temperatures well below the Fermi energy, effectively removing the thermal effects from consideration. We observed small but unambiguous redshifts in the Kβ fluorescence line relative to unshifted Cu Kα. Redshifts up to 2.6 eV were found to increase with compression and to be consistent with predictions from self-consistent models based on density-functional theory.