This paper presents a content-based image retrieval (CBIR) system utilizing the Color Frequency Sequence Difference (CFSD) algorithm and the traditional color histogram method for image comparison. Implemented in Java, the system leverages a MySQL database for efficient retrieval of similar images based on color similarity metrics. The results indicate that the CFSD algorithm offers faster performance than the naive color histogram approach, though accuracy diminishes when retrieving more than three similar images.