#1B4786#1B4786

#1B4786 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.4% C 0.116 H 258.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#1B4786
RGBrgb(27, 71, 134)
HSLhsl(215, 66%, 32%)
HSVhsv(215, 80%, 53%)
CMYKcmyk(79.9%, 47%, 0%, 47.5%)
CIE-LABlab(30.54, 9.03, -39.60)
CIE-LCHlch(30.54, 40.61, 282.84°)
OKLaboklab(40.39% -0.0242 -0.1136)
OKLCHoklch(40.39% 0.116 258)
XYZxyz(7.0067, 6.4599, 23.4272)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4786 #865A1B
analogous
#1B7D86 #1B4786 #251B86
triadic
#1B4786 #861B47 #47861B
tetradic
#1B4786 #861B7D #865A1B #1B8625
square
#1B4786 #861B7D #865A1B #1B8625
split-complementary
#1B4786 #86251B #7D861B
monochromatic
#061120 #112C53 #1B4786 #2562B9 #4280D9

Accessibility & contrast

On white

9.16
#1B4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#1B4786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4786
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4786#FFFFFF#000000##FFFFFF
##1B47861.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D88
Deuteranopia (green-blind)
#0D4385
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b4786;
/* rgb */ color: rgb(27, 71, 134);
/* oklch */ color: oklch(40.4% 0.116 258.0);
Tailwind
colors: {
  custom: {
    50: '#6979aa',
    500: '#1b4786',
    950: '#000000',
  },
}
SCSS
$custom: #1b4786;
$custom-light: #6979aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4786",
  "rgb": {
    "r": 27,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 215.327,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40392,
    "c": 0.11613,
    "h": 258
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#1B4786
secondary
#B98944
accent
#A33EE9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1B4786

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

Preview Lab → · Contrast checker → · Palette generator →

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