#1B418D color

#1B418D is rgb(27, 65, 141) in RGB and hsl(220, 68%, 33%) in HSL. The closest CSS named color is darkslateblue (#483d8b, ΔE 8.3). Use white text on it (contrast 9.60:1).

#1B418Dblue
HEX#1B418D
RGBrgb(27, 65, 141)
RGB percentrgb(10.6%, 25.5%, 55.3%)
HSLhsl(220, 68%, 33%)
HSV / HSBhsv(220, 81%, 55%)
CMYKcmyk(81%, 54%, 0%, 45%)
CIELAB (D65)lab(29.3 16 -46)

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

About #1B418D

#1B418D 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 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#1B418D
RGBrgb(27, 65, 141)
RGB percentrgb(10.6%, 25.5%, 55.3%)
HSLhsl(220, 68%, 33%)
HSV / HSBhsv(220, 81%, 55%)
CMYKcmyk(81%, 54%, 0%, 45%)
CIELAB (D65)lab(29.3 16 -46)
Decimal1786253
Binary00011011 01000001 10001101

HEX 1B 41 8D → 27, 65, 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 #1B418D

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #1B418DRatioAA normalAA largeAAA normalAAA large
White text9.60:1PassPassPassPass
Black text2.19:1FailFailFailFail
White text on #1B418D
Black text on #1B418D
#1B418D text on white
#1B418D text on black

Relative luminance is 0.0594 (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
#094a90

Deuteranopia
#00408b

Tritanopia
#005460

Achromatopsia
#454545

People with red–green color blindness see this color almost unchanged (ΔE 1.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
darkslateblue#483d8b8.3
midnightblue#19197012.7
rebeccapurple#66339915.3
mediumblue#0000cd15.5

CSS

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

Frequently asked questions

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