Create dojo.Color
<html> <head> <script type="text/javascript"> var djConfig = { baseScriptUri : "js/dojo/" }; </script> <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script> <script> var c1 = new dojo.Color([255, 0, 0]); alert(c1); </script> </head> <body></body> </html>