Я получаю цвет с помощью rgb с методом ниже
public short getRGBColor(int red, int green, int blue){
HSSFWorkbook hwb = new HSSFWorkbook();
HSSFPalette palette = hwb.getCustomPalette();
return palette.findSimilarColor(red,green, blue).getIndex();
}
, затем вызываю метод ниже
public CellStyle createStyles(Workbook wb){
CellStyle style;
Font font1 = wb.createFont();
font1.setBold(false);
style = wb.createCellStyle();
style.setAlignment(HorizontalAlignment.CENTER);
style.setFillForegroundColor(getRGBColor(211,225,237));
style.setFillPattern(FillPatternType.SOLID_FOREGROUND);
style.setFont(font1);
return style;
}
Это мой выбранный код цвета 211,225,237 
, но метод getRGBColor возвращает другой код цвета 204,204,255 