public Color GetRealColor(Color clr) { Graphics g = Graphics.FromHwnd(IntPtr.Zero); Color res = g.GetNearestColor(clr); g.Dispose(); return res; }