how are old paint colors figured out ?

They match to an available color, take a chip from the jamb area, voila.