#2563EB: Tailwind blue-600 codes, text contrast and shades

By TechCompare · Updated · How we check

#2563EB is rgb(37, 99, 235), the blue-600 of Tailwind CSS 2 and 3. White text works on it: white scores 5.17:1 and passes WCAG AA, while black gets 4.06:1, enough only for large text.

#2563EB

Color Codes

  • HEX#2563EB
  • RGBrgb(37, 99, 235)
  • HSLhsl(221, 83%, 53%)
  • OKLCHoklch(54.61% 0.2152 262.88)

Text on #2563EB

White Text

Aa

The quick brown fox jumps over the lazy dog.

5.17:1APCA Lc -80.2

  • AA Normal (4.5:1)Pass
  • AA Large (3:1)Pass
  • AAA Normal (7:1)Fail
  • AAA Large (4.5:1)Pass
Check White Text in Contrast Checker

Black Text

Aa

The quick brown fox jumps over the lazy dog.

4.06:1APCA Lc 29.2

  • AA Normal (4.5:1)Fail
  • AA Large (3:1)Pass
  • AAA Normal (7:1)Fail
  • AAA Large (4.5:1)Fail
Check Black Text in Contrast Checker

WCAG 2 ratios are the same whichever color is the text, so they also hold for #2563EB text on a white or black page. APCA is a newer method that isn't part of any WCAG standard, and a minus sign means light text on dark.

#2563EB mixes 37 red, 99 green and 235 blue into a strong, saturated blue. It's blue-600 in Tailwind CSS 2 and 3, one step darker than blue-500 (#3B82F6). The cards above list its codes and test white and black text on it. Further down you'll find a shade scale and the named colors that come closest.

Shades

Same hue and chroma in OKLCH, with even steps of lightness. Open any shade in the Color Picker.

  1. #E9F6FF
  2. #B4D3FF
  3. #7EAEFF
  4. #4787FF
  5. Base#2563EB
  6. #124FD6
  7. #0039C0
  8. #0022AB
  9. #000097

Nearest Named Colors

  • CSS Name

    royalblue

    #4169E1

    CloseΔE OK 0.033
  • Tailwind 4

    blue-600

    oklch(54.6% 0.245 262.881)

    CloseΔE OK 0.030
  • Tailwind 3

    blue-600

    #2563EB

    ExactΔE OK 0.000

About #2563EB

#2563EB has been blue-600 since Tailwind CSS 2, and Tailwind 3 kept it. The official forms plugin, @tailwindcss/forms, takes blue-600 from your theme for its defaults. In a Tailwind 3 project with the stock palette, that makes #2563EB the focus ring and border on text inputs, selects and textareas, and the fill of checked checkboxes and radio buttons.

Tailwind 4 rewrote the palette in OKLCH, and its blue-600 is oklch(54.6% 0.245 262.881). #2563EB works out to oklch(54.61% 0.2152 262.88). The chroma went from 0.2152 to 0.245, so the version 4 blue is more vivid. It still fits inside sRGB, though, so any screen can show it as written.

White text on #2563EB scores 5.17:1 in WCAG 2. That passes AA at any size and AAA for large text, but not AAA for normal text, which asks for 7:1. Black text gets 4.06:1, so it passes AA only for large text: 24px and up, or about 18.66px bold. APCA, a newer method that isn't part of any WCAG standard, agrees on white. It scores white text Lc -80.2, past the Lc 75 it suggests for body text, and black text only Lc 29.2, under the Lc 45 it suggests even for large headlines.

That makes #2563EB a good swap when blue-500, #3B82F6, is too light for a white label. White text on #3B82F6 gets only 3.68:1, and one step darker clears AA. The ratio is the same with the colors swapped, so #2563EB text on a white page also gets 5.17:1 and passes AA for links and body text. Next to black body text, a #2563EB link sits 4.06:1 apart, past the 3:1 that technique G183 asks for when color is the only cue. An underline is still the simpler choice.

Verdict

Use #2563EB anywhere it meets white: button fills with white labels, links on a white page, badges and active tabs. It passes WCAG AA both ways at 5.17:1. Keep black text on it for large headings only, since 4.06:1 fails AA for normal text. If you need AAA for normal text, go two steps down the scale to #0039C0, which gives white text 8.95:1.

Black text passes AA on all four lighter steps. The palest two make soft backgrounds for alerts, badges and selected rows. White text passes on all four darker steps, so they suit hover and pressed states for a #2563EB button. Click any step to open it in the Color Picker.

More Color scenarios

Hex to RGB
A hex color code is three RGB numbers written in base 16.
View details
RGB vs CMYK
Screens add light and print adds ink. See one color in both, and why a plain CMYK formula can't promise a print match.
View details
HSL color model
Hue, saturation and lightness, with three live sliders and a table of common colors in hex, RGB and HSL.
View details

Frequently asked questions

What color is #2563EB?
A strong, saturated blue: rgb(37, 99, 235), hsl(221, 83%, 53%) or oklch(54.61% 0.2152 262.88). Tailwind CSS 2 and 3 call it blue-600. CSS has no name for it. The nearest is royalblue (#4169E1), 0.033 away in OKLab, which is close but easy to tell apart side by side.
Does white text on #2563EB pass WCAG?
Yes, for AA. White text gets 5.17:1, past the 4.5:1 AA asks for normal text. It misses AAA's 7:1 for normal text, though it passes AAA for large text. For AAA at any size, darken it to #0039C0, at 8.95:1.
How is #2563EB different from #3B82F6?
#3B82F6 is blue-500, the next lighter step in the same Tailwind palette. Its OKLCH lightness is 62.31%, against 54.61% for #2563EB. The gap matters for text: white text on #3B82F6 gets 3.68:1 and fails AA for normal text, while #2563EB passes at 5.17:1.
What's Tailwind 4's blue-600 in hex?
It's #155DFC. Tailwind 4 defines blue-600 as oklch(54.6% 0.245 262.881), and that fits inside sRGB, so the hex needs no gamut mapping. It sits 0.030 away from #2563EB in OKLab, close but not the same blue. To keep #2563EB after an upgrade, set --color-blue-600: #2563EB in your @theme block.