Seems like, if you got it for $27K, they aren't holding their resale value as great as they could. I am a bit suspicious of KBB's numbers. When I stick my '09, with 7k miles, in their calculator, they say the private party value is $30K and a retail value of almost $33K which is more than I paid for mine new. NADA puts the "clean" retail value at $29.5K, which seems more realistic. Edmunds, likewise, is lower, at about $30.5K.
http://www.nadaguides.com/Cars/2009/Hyundai/Genesis-V6/Sedan-4D/Standard-Equipment
Does sound like you got a real good deal though...especially if you got a new car warranty with it.
It is interesting to note the trade-in value runs from $23-$25K for a clean car, so dealer should be able to get some healthy profit, even at $27K.