It was first used by the British in India in 1845, when soldiers turned their highly visible white uniforms khaki by soaking them in mud, coffee, and curry and better blend in with the landscape.

 

Source:  The 365 amazing trivia facts calendar 2007.