#1B4787#1B4787

#1B4787 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.118 H 258.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#1B4787
RGBrgb(27, 71, 135)
HSLhsl(216, 67%, 32%)
HSVhsv(216, 80%, 53%)
CMYKcmyk(80%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.61, 9.44, -40.11)
CIE-LCHlch(30.61, 41.20, 283.24°)
OKLaboklab(40.47% -0.024 -0.1151)
OKLCHoklch(40.47% 0.118 258.2)
XYZxyz(7.0768, 6.4879, 23.7963)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4787 #875B1B
analogous
#1B7D87 #1B4787 #251B87
triadic
#1B4787 #871B47 #47871B
tetradic
#1B4787 #871B7D #875B1B #1B8725
square
#1B4787 #871B7D #875B1B #1B8725
split-complementary
#1B4787 #87251B #7D871B
monochromatic
#071121 #112C54 #1B4787 #2562BA #4380D9

Accessibility & contrast

On white

9.14
#1B4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1B4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4787
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4787#FFFFFF#000000##FFFFFF
##1B47871.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D89
Deuteranopia (green-blind)
#0A4386
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b4787;
/* rgb */ color: rgb(27, 71, 135);
/* oklch */ color: oklch(40.5% 0.118 258.2);
Tailwind
colors: {
  custom: {
    50: '#6979aa',
    500: '#1b4787',
    950: '#000000',
  },
}
SCSS
$custom: #1b4787;
$custom-light: #6979aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4787",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 215.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40465,
    "c": 0.11756,
    "h": 258.2
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#1B4787
secondary
#BA8A44
accent
#A43EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1B4787

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

Preview Lab → · Contrast checker → · Palette generator →

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