Hola means “hello” or “hi”.
This is the most common word in Spanish to say “Hello” and can be used at all times.
It’s not formal, it may sound colloquial but is not, it can be used in most situations.
Remember that in Spanish the h is silent, pronounce it as the word ola (which means wave).