The paper presents a fuzzy based impulse noise filter for both gray scale and color images. The proposed approach is based on the technique of boundary discriminative noise detection. The algorithm is a multi-step process comprising detection filtering and color correction stages. The detection procedure classifies the pixels as corrupted and uncorrupted by computing decision boundaries which are fuzzified to improve the outputs obtained. In the case of color images a correction term is added by examining the interactions between the color components for further improvement. Quantitative and qualitative analysis performed on standard gray scale and color image shows improved performance of the proposed technique over existing state-of-the-art algorithms in terms of Peak Signal to Noise Ratio (PSNR) and color difference metrics. The analysis proves the applicability of the proposed algorithm to random valued impulse noise.