An 82-unit apartment building in downtown Hartford was sold for more than $14 million, according to state property records.