Color in SCNNodes
The values passed to the UIColor
initializer need to be between 0 and 1. You should divide your rgb values by 255.
box.firstMaterial?.diffuse.contents = UIColor(red: 30.0 / 255.0, green: 150.0 / 255.0, blue: 30.0 / 255.0, alpha: 1)