#1B3987#1B3987

#1B3987 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.136 H 264.6°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#1B3987
RGBrgb(27, 57, 135)
HSLhsl(223, 67%, 32%)
HSVhsv(223, 80%, 53%)
CMYKcmyk(80%, 57.8%, 0%, 47.1%)
CIE-LABlab(26.47, 19.15, -46.80)
CIE-LCHlch(26.47, 50.56, 292.25°)
OKLaboklab(37.31% -0.0126 -0.135)
OKLCHoklch(37.31% 0.136 264.6)
XYZxyz(6.2867, 4.9078, 23.5329)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3987 #87691B
analogous
#1B6F87 #1B3987 #331B87
triadic
#1B3987 #871B39 #39871B
tetradic
#1B3987 #871B6F #87691B #1B8733
square
#1B3987 #871B6F #87691B #1B8733
split-complementary
#1B3987 #87331B #6F871B
monochromatic
#070E21 #112354 #1B3987 #254FBA #436DD9

Accessibility & contrast

On white

10.60
#1B3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1B3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3987
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3987#FFFFFF#000000##FFFFFF
##1B39871.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1b3987;
/* rgb */ color: rgb(27, 57, 135);
/* oklch */ color: oklch(37.3% 0.136 264.6);
Tailwind
colors: {
  custom: {
    50: '#6a6eab',
    500: '#1b3987',
    950: '#000000',
  },
}
SCSS
$custom: #1b3987;
$custom-light: #6a6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3987",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 223.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37307,
    "c": 0.13564,
    "h": 264.6
  },
  "luminance": 0.04909
}

Semantic roles & 50–950 ramp

primary
#1B3987
secondary
#BA9944
accent
#BA3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3987

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

Preview Lab → · Contrast checker → · Palette generator →

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