#1F50B2 color

#1F50B2 is rgb(31, 80, 178) in RGB and hsl(220, 70%, 41%) in HSL. The closest CSS named color is royalblue (#4169e1, ΔE 10.5). Use white text on it (contrast 7.37:1).

#1F50B2blue
HEX#1F50B2
RGBrgb(31, 80, 178)
RGB percentrgb(12.2%, 31.4%, 69.8%)
HSLhsl(220, 70%, 41%)
HSV / HSBhsv(220, 83%, 70%)
CMYKcmyk(83%, 55%, 0%, 30%)
CIELAB (D65)lab(36.4 21 -56.6)

Edit in the color converter → · Check contrast → · Shades →

About #1F50B2

#1F50B2 is a medium-dark, saturated blue with a hue angle of 220°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 178 (70%) and red the weakest at 31 (12%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#1F50B2
RGBrgb(31, 80, 178)
RGB percentrgb(12.2%, 31.4%, 69.8%)
HSLhsl(220, 70%, 41%)
HSV / HSBhsv(220, 83%, 70%)
CMYKcmyk(83%, 55%, 0%, 30%)
CIELAB (D65)lab(36.4 21 -56.6)
Decimal2052274
Binary00011111 01010000 10110010

HEX 1F 50 B2 → 31, 80, 178 (each pair is a base-16 number: 1×16 + F = 31)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #1F50B2

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #1F50B2RatioAA normalAA largeAAA normalAAA large
White text7.37:1PassPassPassPass
Black text2.85:1FailFailFailFail
White text on #1F50B2
Black text on #1F50B2
#1F50B2 text on white
#1F50B2 text on black

Relative luminance is 0.0924 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#005db5

Deuteranopia
#004fb0

Tritanopia
#006879

Achromatopsia
#565656

People with red–green color blindness see this color almost unchanged (ΔE 1.6 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
royalblue#4169e110.5
darkslateblue#483d8b11.1
slateblue#6a5acd11.7
blue#0000ff16

CSS

.element {
  color: #1f50b2;
  background-color: rgb(31, 80, 178);
  border: 1px solid hsl(220, 70%, 41%);
  box-shadow: 0 2px 8px rgb(31 80 178 / 50%);
}
:root { --brand: #1f50b2; }

Frequently asked questions

What color is #1F50B2?
A medium-dark saturated blue in the blue family. Closest CSS name: royalblue.
What is #1F50B2 in RGB?
rgb(31, 80, 178): red 31, green 80, blue 178.
What is the complementary color of #1F50B2?
#B2811F, found by rotating the hue 180°.