Get-VirtualTerminalSequence returns the following for:
Gray: [38;2;128;128;128m
DarkGray: [38;2;169;169;169m
Gray: [38;2;169;169;169m
DarkGray: [38;2;128;128;128m
Preferably, ConsoleColor would be checked before HTMLColor.
We went back and forth on which to support first. We decided to support HtmlColor names first because supplying a ConsoleColor is easy - just set the color to ([ConsoleColor]::Gray). Also, when you use a ConsoleColor you're going to get the color as defined by the index of your console host properties color tab:
PS> &(gmo posh-git) { EscapeAnsiString (Get-VirtualTerminalSequence ([ConsoleColor]::Gray)) }
`e[37m
PS> &(gmo posh-git) { EscapeAnsiString (Get-VirtualTerminalSequence ([ConsoleColor]::DarkGray)) }
`e[90m
Regarding the HtmlColor definitions of Gray and DarkGray, we are just using what the System.Drawing.ColorTranslator.FromHtml() method is returning. If you think those values are wrong, you should submit an issue to the CoreFx repo.
It never occurred to me that HTML/CSS/SVG Gray would be darker than DarkGray, but here we are:

Most helpful comment
It never occurred to me that HTML/CSS/SVG
Graywould be darker thanDarkGray, but here we are:https://en.wikipedia.org/wiki/Web_colors