#1B4187#1B4187

#1B4187 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.1% C 0.125 H 261.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#1B4187
RGBrgb(27, 65, 135)
HSLhsl(219, 67%, 32%)
HSVhsv(219, 80%, 53%)
CMYKcmyk(80%, 51.9%, 0%, 47.1%)
CIE-LABlab(28.80, 13.57, -43.02)
CIE-LCHlch(28.80, 45.11, 287.50°)
OKLaboklab(39.08% -0.0189 -0.1238)
OKLCHoklch(39.08% 0.125 261.3)
XYZxyz(6.7139, 5.7621, 23.6753)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4187 #87611B
analogous
#1B7787 #1B4187 #2B1B87
triadic
#1B4187 #871B41 #41871B
tetradic
#1B4187 #871B77 #87611B #1B872B
square
#1B4187 #871B77 #87611B #1B872B
split-complementary
#1B4187 #872B1B #77871B
monochromatic
#071021 #112854 #1B4187 #255ABA #4378D9

Accessibility & contrast

On white

9.76
#1B4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1B4187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4187
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4187#FFFFFF#000000##FFFFFF
##1B41871.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#00525D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1b4187;
/* rgb */ color: rgb(27, 65, 135);
/* oklch */ color: oklch(39.1% 0.125 261.3);
Tailwind
colors: {
  custom: {
    50: '#6975aa',
    500: '#1b4187',
    950: '#000000',
  },
}
SCSS
$custom: #1b4187;
$custom-light: #6975aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4187",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 218.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39078,
    "c": 0.12522,
    "h": 261.3
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#1B4187
secondary
#BA9044
accent
#AD3EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B4187

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1B4187 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva