Ojai ( ) is a city in Ventura County in the U.S. state of California. It is northwest of Los Angeles and east of Santa Barbara. It is about long by wide, surrounded by hills and mountains. The population was 7,461 at the 2010 census.