#1B4789#1B4789

#1B4789 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.6% C 0.120 H 258.7°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#1B4789
RGBrgb(27, 71, 137)
HSLhsl(216, 67%, 32%)
HSVhsv(216, 80%, 54%)
CMYKcmyk(80.3%, 48.2%, 0%, 46.3%)
CIE-LABlab(30.75, 10.25, -41.12)
CIE-LCHlch(30.75, 42.38, 283.99°)
OKLaboklab(40.61% -0.0236 -0.1181)
OKLCHoklch(40.61% 0.12 258.7)
XYZxyz(7.2189, 6.5448, 24.5449)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4789 #895D1B
analogous
#1B7E89 #1B4789 #261B89
triadic
#1B4789 #891B47 #47891B
tetradic
#1B4789 #891B7E #895D1B #1B8926
square
#1B4789 #891B7E #895D1B #1B8926
split-complementary
#1B4789 #89261B #7E891B
monochromatic
#071223 #112D56 #1B4789 #2561BC #4480DA

Accessibility & contrast

On white

9.09
#1B4789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1B4789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4789
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4789#FFFFFF#000000##FFFFFF
##1B47891.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8B
Deuteranopia (green-blind)
#044488
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b4789;
/* rgb */ color: rgb(27, 71, 137);
/* oklch */ color: oklch(40.6% 0.120 258.7);
Tailwind
colors: {
  custom: {
    50: '#6979ac',
    500: '#1b4789',
    950: '#000000',
  },
}
SCSS
$custom: #1b4789;
$custom-light: #6979ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4789",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 216,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.40613,
    "c": 0.12041,
    "h": 258.7
  },
  "luminance": 0.06546
}

Semantic roles & 50–950 ramp

primary
#1B4789
secondary
#BC8C44
accent
#A53EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1B4789

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

Preview Lab → · Contrast checker → · Palette generator →

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