#1B4587#1B4587

#1B4587 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.0% C 0.120 H 259.3°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#1B4587
RGBrgb(27, 69, 135)
HSLhsl(217, 67%, 32%)
HSVhsv(217, 80%, 53%)
CMYKcmyk(80%, 48.9%, 0%, 47.1%)
CIE-LABlab(30.00, 10.81, -41.08)
CIE-LCHlch(30.00, 42.48, 284.74°)
OKLaboklab(40% -0.0223 -0.118)
OKLCHoklch(40% 0.12 259.3)
XYZxyz(6.9517, 6.2377, 23.7546)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B4587 #875D1B
analogous
#1B7B87 #1B4587 #271B87
triadic
#1B4587 #871B45 #45871B
tetradic
#1B4587 #871B7B #875D1B #1B8727
square
#1B4587 #871B7B #875D1B #1B8727
split-complementary
#1B4587 #87271B #7B871B
monochromatic
#071121 #112B54 #1B4587 #255FBA #437DD9

Accessibility & contrast

On white

9.34
#1B4587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1B4587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B4587
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B4587#FFFFFF#000000##FFFFFF
##1B45871.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C89
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1b4587;
/* rgb */ color: rgb(27, 69, 135);
/* oklch */ color: oklch(40.0% 0.120 259.3);
Tailwind
colors: {
  custom: {
    50: '#6978aa',
    500: '#1b4587',
    950: '#000000',
  },
}
SCSS
$custom: #1b4587;
$custom-light: #6978aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b4587",
  "rgb": {
    "r": 27,
    "g": 69,
    "b": 135
  },
  "hsl": {
    "h": 216.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.39998,
    "c": 0.12008,
    "h": 259.3
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#1B4587
secondary
#BA8C44
accent
#A73EEA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1B4587

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

Preview Lab → · Contrast checker → · Palette generator →

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