What’s the best city for women in tech?

Silicon Valley may be the Promised Land of the tech universe, but for women in tech, it turns out the Bay Area is actually among the worst places to be.

The best place? Washington D.C.

San Francisco came in #23.

Using 2013 U.S. Census data, the financial advice startup SmartAsset ranked the best cities for women working in tech. The analysis considered four factors in cities with a population of more than 200,000: the percentage of women in the local tech workforce, the tech gender pay gap, three-year employment growth for women in tech and income after the cost of housing.

In D.C., which far outranked the other cities in the analysis, women made up 37 percent of the tech workforce — significantly more than the national average of 25 percent and higher than in any other city examined. This, Smart Asset pointed out, is likely due to the number of tech jobs in the federal government, which places more emphasis on workforce diversity.

In two of the top 10 cities — Kansas City and Arlington, Tex. — women in tech actually made more than men did on average. Nationally, women in tech are paid 84.7 percent of what men are paid on average.

The tech world’s gender problem has dominated headlines over the past year, and with good reason. At many tech companies and venture capital firms, women are not only a scarce minority, they are subjected to discrimination and even harassment. In a survey of 22 tech companies by the Rainbow Push Coalition, for example, there were no women in top positions at two companies, Groupon and Comcast. And out of 189 board members at 20 technology firms, only 36 were women.

But perhaps the tech world’s gender problem is really, mostly, a Silicon Valley problem. Only one Bay Area city, Fremont, made it into the top 10.