The Town of Danville is located in the San Ramon Valley in Contra Costa County, California, United States. It is one of the incorporated municipalities in California that use "town" in their names instead of "city". The population was 43,582 at the 2020 census. Since 2018, for five consecutive years, Danville was named "the safest town in California".