Hartford is a city in Van Buren County in the U.S. state of Michigan. The population was 2,688 at the 2010 census. The city is located within Hartford Township, but is politically independent.