#1B1B8D color

#1B1B8D is rgb(27, 27, 141) in RGB and hsl(240, 68%, 33%) in HSL. The closest CSS named color is darkblue (#00008b, ΔE 4.5). Use white text on it (contrast 13.22:1).

#1B1B8Dindigo
HEX#1B1B8D
RGBrgb(27, 27, 141)
RGB percentrgb(10.6%, 10.6%, 55.3%)
HSLhsl(240, 68%, 33%)
HSV / HSBhsv(240, 81%, 55%)
CMYKcmyk(81%, 81%, 0%, 45%)
CIELAB (D65)lab(19.8 40.8 -61.5)

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

About #1B1B8D

#1B1B8D 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 141 (55%) and red the weakest at 27 (11%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#1B1B8D
RGBrgb(27, 27, 141)
RGB percentrgb(10.6%, 10.6%, 55.3%)
HSLhsl(240, 68%, 33%)
HSV / HSBhsv(240, 81%, 55%)
CMYKcmyk(81%, 81%, 0%, 45%)
CIELAB (D65)lab(19.8 40.8 -61.5)
Decimal1776525
Binary00011011 00011011 10001101

HEX 1B 1B 8D → 27, 27, 141 (each pair is a base-16 number: 1×16 + B = 27)

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 #1B1B8D

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #1B1B8DRatioAA normalAA largeAAA normalAAA large
White text13.22:1PassPassPassPass
Black text1.59:1FailFailFailFail
White text on #1B1B8D
Black text on #1B1B8D
#1B1B8D text on white
#1B1B8D text on black

Relative luminance is 0.0294 (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
#003690

Deuteranopia
#002a8b

Tritanopia
#003e54

Achromatopsia
#303030

People with red–green color blindness see this color almost unchanged (ΔE 4.9 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
darkblue#00008b4.5
midnightblue#1919704.5
navy#0000805.1
indigo#4b00827.8

CSS

.element {
  color: #1b1b8d;
  background-color: rgb(27, 27, 141);
  border: 1px solid hsl(240, 68%, 33%);
  box-shadow: 0 2px 8px rgb(27 27 141 / 50%);
}
:root { --brand: #1b1b8d; }

Frequently asked questions

What color is #1B1B8D?
A medium-dark saturated indigo in the blue family. Closest CSS name: darkblue.
What is #1B1B8D in RGB?
rgb(27, 27, 141): red 27, green 27, blue 141.
What is the complementary color of #1B1B8D?
#8D8D1B, found by rotating the hue 180°.