Ojai (/ˈh/ OH-hy) 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 10 miles (16 km) long by 3 miles (5 km) wide, surrounded by hills and mountains. The population was 7,461 at the 2010 census.