Farmington is a town located in Hartford County in the Farmington Valley area of central Connecticut in the United States. The population was 25,340 at the 2010 census. As an affluent suburb of Hartford, it is home to the world headquarters of several large corporations including Carrier Corporation, Otis Elevator Company, and Carvel. Farmington was originally inhabited by the TunxisIndian tribe. In 1640, a white settlement was established by residents of Hartford, making Farmington the oldest inland settlement west of the Connecticut River and one of the oldest communities in the state. Settlers found the area ideal because of its rich soil, location along the floodplain of the Farmington River, and valley geography.