#1B3887#1B3887

#1B3887 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.137 H 265.0°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#1B3887
RGBrgb(27, 56, 135)
HSLhsl(224, 67%, 32%)
HSVhsv(224, 80%, 53%)
CMYKcmyk(80%, 58.5%, 0%, 47.1%)
CIE-LABlab(26.19, 19.85, -47.26)
CIE-LCHlch(26.19, 51.26, 292.78°)
OKLaboklab(37.09% -0.0119 -0.1364)
OKLCHoklch(37.09% 0.137 265)
XYZxyz(6.2378, 4.8099, 23.5166)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3887 #876A1B
analogous
#1B6E87 #1B3887 #341B87
triadic
#1B3887 #871B38 #38871B
tetradic
#1B3887 #871B6E #876A1B #1B8734
square
#1B3887 #871B6E #876A1B #1B8734
split-complementary
#1B3887 #87341B #6E871B
monochromatic
#070E21 #112354 #1B3887 #254DBA #436BD9

Accessibility & contrast

On white

10.70
#1B3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1B3887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3887
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3887#FFFFFF#000000##FFFFFF
##1B38871.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1b3887;
/* rgb */ color: rgb(27, 56, 135);
/* oklch */ color: oklch(37.1% 0.137 265.0);
Tailwind
colors: {
  custom: {
    50: '#6a6eab',
    500: '#1b3887',
    950: '#000000',
  },
}
SCSS
$custom: #1b3887;
$custom-light: #6a6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3887",
  "rgb": {
    "r": 27,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 223.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37093,
    "c": 0.13695,
    "h": 265
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#1B3887
secondary
#BA9A44
accent
#BC3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3887

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

Preview Lab → · Contrast checker → · Palette generator →

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