A closer look at Peculiar velocity
A galaxy can move relative to the average expansion of its surroundings.
Gravity in a cluster or group contributes to this peculiar velocity. The observed redshift combines large-scale expansion with local motion and other smaller effects.
For a nearby galaxy, a few hundred kilometers per second of peculiar motion can strongly affect a distance inferred from redshift alone. A blueshift moves a spectral feature toward shorter wavelengths.
Want to learn more about Peculiar velocity? Peculiar velocity on Wikipedia.

