#1F1FB2 color

#1F1FB2 is rgb(31, 31, 178) in RGB and hsl(240, 70%, 41%) in HSL. The closest CSS named color is mediumblue (#0000cd, ΔE 4.1). Use white text on it (contrast 11.07:1).

#1F1FB2indigo
HEX#1F1FB2
RGBrgb(31, 31, 178)
RGB percentrgb(12.2%, 12.2%, 69.8%)
HSLhsl(240, 70%, 41%)
HSV / HSBhsv(240, 83%, 70%)
CMYKcmyk(83%, 83%, 0%, 30%)
CIELAB (D65)lab(25.2 51 -75.1)

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

About #1F1FB2

#1F1FB2 is a medium-dark, saturated indigo with a hue angle of 240°. 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#1F1FB2
RGBrgb(31, 31, 178)
RGB percentrgb(12.2%, 12.2%, 69.8%)
HSLhsl(240, 70%, 41%)
HSV / HSBhsv(240, 83%, 70%)
CMYKcmyk(83%, 83%, 0%, 30%)
CIELAB (D65)lab(25.2 51 -75.1)
Decimal2039730
Binary00011111 00011111 10110010

HEX 1F 1F B2 → 31, 31, 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 #1F1FB2

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #1F1FB2RatioAA normalAA largeAAA normalAAA large
White text11.07:1PassPassPassPass
Black text1.90:1FailFailFailFail
White text on #1F1FB2
Black text on #1F1FB2
#1F1FB2 text on white
#1F1FB2 text on black

Relative luminance is 0.0449 (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
#0043b6

Deuteranopia
#0034b0

Tritanopia
#004f6a

Achromatopsia
#3c3c3c

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 5.5). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
mediumblue#0000cd4.1
darkblue#00008b7.6
blue#0000ff8.8
navy#0000809

CSS

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

Frequently asked questions

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