Support for leading zeroes in colour codes

Fix for issue #174