Now I get a object which contains a color named 'Clear'. I want to set it to RGB value, and I used a function to do that, but it return me 'rgb(51, 51, 51)', while in angular chorme chart it resolove it to'#3366cc'.How can I get the rgb value with out using other js libaries? -
function(){
var div = document.createElement('div');
var rgbColor;
div.style.color = 'Clear';
document.body.appendChild(div);
rgbColor = window.getComputedStyle(div).color
div.remove();
return rgbColor;
}