Set the foreground color attribute.
These attributes set the none bright named colors. The white color is a grey brighter than the "bright black".
30 | black |
31 | red |
32 | green |
33 | yellow |
34 | blue |
35 | magenta |
36 | cyan |
37 | "white" |
In practice these colors can be customized or selected from a theme in most terminals. The exact values can vary wildly.
🛈 linuxvc has drivers that support monochrome mode, in which case the colors are ignored.