I can't get TeX RGB color to work

Greetings,

I have been trying to get TeX RGB color formatting to work but haven’t been able to.

This works fine:

``````tString =  sprintf('\\color{blue} this text will be blue');
text(100, 100, tString);
``````

This gives me a TeX parse error:

``````tString = sprintf('\\color[rgb]{0 0 1} this gives me an error');
text(100,100,tString);
TeX parse error: syntax error
``````

What am I dong wrong?

Thanks!

Octave 7.1.0
configured for x86_64-w64-mingw32