Observations of supernovae Ia make it possible to estimate the values of cosmological parameters using the Hubble diagram. First of all, such observations give us a value of the Hubble constant, which is one of the most important cosmological parameters. Improving the accuracy of measurements of this parameter is a priority for modern cosmological analysis. Therefore, it is necessary to take into account the influence of the peculiar velocities of supernovae Ia on the measurement of the redshift, which is used in constructing the Hubble diagram. We study the contribution of peculiar velocities due to the motion of host galaxies in the gravitational field of galaxy clusters for a cosmological sample of supernovae Pantheon.