The shape of the vibration-rotation ν(HF) band is studied in HF/Xe and HF/CO mixtures at increasing Xe (or CO) density from gaseous to liquid phase at 293 K. The evolution of the ν(HF) band is determined by coexistence of ensembles of free and complexed molecules. The band of free HF molecules is calculated using the super-Lorentzian profile for rotational HF lines. The νHF bands of the Xe... HF, OC...HF and CO... HF complexes, which appear in the absorption region of P(1) and P(1)-P(4) rotational lines of HF, are formed by superposition of the vibration-rotation bands due to hot transitions from excited levels of the low-frequency intermolecular modes. The νHF bands in the complexes experience a low-frequency shift and become more symmetric with increasing density. A model taking into account spectral exchange between overlapping lines provides correct description of the complex band shape evolution with increasing density.