getColorValue = function getColorValue(string) {
  if (testRgb.test(string)) {
    return safeRgbToRgb(string);
  }
  if (testHex.test(string)) {
    return safeHexToRgb(string);
  }
  return [0, 0, 255];
}
Returns a sanitized three-number array representing RGB color values, with a safe default.
@param string
@returns {number[]}