Bag of words algorithm is an efficient object recognition algorithm based on semantic features extraction and expression. It learns the virtues of the text-based search algorithm to make images a range of visual words, extract the semantic characters and carry out the detection and recognition of interesting objects. Bag of words algorithm is extracted from gray images and discard s color information of images. We propose in this paper a method of image retrieval based on clustered domain colors and bag of words algorithm. The results of experiments show that this method can improve the precision of retrieval efficiently.