A Consolidated Framework of the Color Variability in Blazars: Long-term Optical/Near-infrared Observations of 3C 279