I know that the color bf command sets the colors of the whole command line window but I wanted to to print one single line in a different color.
color bf
To get this working on Windows 10, you can enable this flag: ENABLE_VIRTUAL_TERMINAL_PROCESSING.
ENABLE_VIRTUAL_TERMINAL_PROCESSING
With this registry key you can set this by default
[HKCU\Console] VirtualTerminalLevel dword 0x1