RGB to Hex Converter

Design Tools · Nextrays

RGB to Hex Converter

Convert RGB values to a hex colour code instantly — free, in your browser.

← All ToolsContrast Checker →

#2563eb
Hex code
RGB (37, 99, 235)
RGB values
#2563EB
Hex (uppercase)

🔒 Processing happens in your browser — nothing is uploaded.

How to use RGB to Hex Converter

Follow the steps below

Step 1

Type the red, green and blue values (each from 0 to 255) in the three boxes — for example 37, 99 and 235.

Step 2

Click Convert to Hex — the result also updates live as you type.

Step 3

Read the hex code, shown in lower case and upper case, with a colour swatch.

Step 4

Click Copy hex to copy the code, or Reset to go back to 37, 99, 235.

Features

  • ✓Converts RGB values to a hex code instantly.
  • ✓Live conversion as you type, with a colour swatch preview.
  • ✓Shows the hex code in lower case and upper case.
  • ✓Checks that every value is a whole number from 0 to 255.
  • ✓Copy the hex code in one click.

Supported formats and limits

Enter three whole numbers, one for each colour channel: red, green and blue. Each value must be between 0 and 255. Values outside that range, decimals and empty boxes show a clear message and the last valid result stays on screen.

Frequently asked questions

Is the RGB to Hex Converter free?

Yes. It is completely free, with no sign-up and no limits.

What is the hex code for RGB (37, 99, 235)?

RGB (37, 99, 235) converts to the hex code #2563eb. Red 37 is 25 in hex, green 99 is 63 and blue 235 is eb.

Can I use the hex code in CSS?

Yes. Copy the hex code and paste it straight into your CSS, for example color: #2563eb; — hex codes work the same in upper case and lower case.

Related tools