is the == comparison right? I would
if( (Scalar(H_MIN,S_MIN,V_MIN) >= Scalar(51,153,0)) && (Scalar(H_MAX,S_MAX,V_MAX) <= Scalar(154,255,256)) )
{
cout<<"Its a blue object"<<endl;
}
and also add some () brackets for clarity.
Take also a look on this openCV
article.