Color is not applied when drawing fonts in BGE with blf and bgl
The problem was lying in the Shading settings of Blender. By default, the shading is set to Multitexture, which makes the blf text be only black. If you set the shader to GLSL (see picture below), the colors behave exactly as you would expect them according to the python script that is in my example.