In the meantime i have the solution.
If a picture is stored in ORDIMAGE, i have to convert it first to BLOB then to SI_STILLIMAGE. Then i can use the SI_COLORHISTOGRAM that contains rgb,frequencie pairs, easy to find to top N most common color Then i can use this topN color list for a picture to match it to some basic color :)