I don't understand the desire to match pattern paint colours to the nearest part colour in ldconfig. Why not use direct colours: RGB values of the form 0x2RRGGBB, where RRGGBB is the exact RGB value in hexadecimal notation.
Chris (LDraw Parts Library Admin)