#1B4087#1B4087

#1B4087 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.127 H 261.8°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#1B4087
RGBrgb(27, 64, 135)
HSLhsl(219, 67%, 32%)
HSVhsv(219, 80%, 53%)
CMYKcmyk(80%, 52.6%, 0%, 47.1%)
CIE-LABlab(28.51, 14.26, -43.50)
CIE-LCHlch(28.51, 45.78, 288.15°)
OKLaboklab(38.85% -0.0181 -0.1252)
OKLCHoklch(38.85% 0.127 261.8)
XYZxyz(6.6570, 5.6483, 23.6564)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4087 #87621B
analogous
#1B7687 #1B4087 #2C1B87
triadic
#1B4087 #871B40 #40871B
tetradic
#1B4087 #871B76 #87621B #1B872C
square
#1B4087 #871B76 #87621B #1B872C
split-complementary
#1B4087 #872C1B #76871B
monochromatic
#071021 #112854 #1B4087 #2558BA #4377D9

Accessibility & contrast

On white

9.86
#1B4087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1B4087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4087
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4087#FFFFFF#000000##FFFFFF
##1B40871.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12488A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1b4087;
/* rgb */ color: rgb(27, 64, 135);
/* oklch */ color: oklch(38.9% 0.127 261.8);
Tailwind
colors: {
  custom: {
    50: '#6974aa',
    500: '#1b4087',
    950: '#000000',
  },
}
SCSS
$custom: #1b4087;
$custom-light: #6974aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4087",
  "rgb": {
    "r": 27,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 219.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38851,
    "c": 0.12651,
    "h": 261.8
  },
  "luminance": 0.05649
}

Semantic roles & 50–950 ramp

primary
#1B4087
secondary
#BA9244
accent
#AF3EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B4087

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

Preview Lab → · Contrast checker → · Palette generator →

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