most likely your in a 32bit color mode, so its returning the dispatched 24bit color as the one that got put on the screen being 32bit, (this is only a guess of course)