Colours were not correct for the whole range, just the base 16. This caused issues when working in >16 colour mode.
http://color.smyck.org/.