This document proposes an algorithm to separate white blood cells (WBCs) and red blood cells (RBCs) from blood samples using color-based segmentation in MATLAB. The algorithm takes a microscopic blood cell image as input, isolates the blue color plane where WBCs are prominent, applies thresholding to separate pixels, filters noise, creates a mask to isolate WBCs and RBCs, and allows counting of cells. The results demonstrate separated WBCs and RBCs images and an approximate WBC count. Future work will optimize the counting algorithm.