If you click (or is it double-click ???) the calibre Editor error message it should take you to the actual CSS rule it doesn't like.
This is only a wild guess... but is it anything like
Code:
{color: #00007; ...}
If so, I thought RGB colours defined with a # needed to be #3-dgt or #6-dgt not #5-dgt as in that message you got.