def hexColorToInt(rgb):
    """Convert rgb color string to STK integer color code."""

    r = int(rgb[0:2],16)
    g = int(rgb[2:4],16)
    b = int(rgb[4:6],16)

    color = format(b, '02X') + format(g, '02X') + format(r, '02X')

    return int(color,16)