Eh I lived in tenderloin for a couple years and would often walk around alone past midnight to make a snack run or go to the gym. Definitely sketchy but never felt unsafe.
I have no delusions though, I would not consider any part of the city as truly safe, the metric being I'd be ok with my wife walking around alone.