#1B3387#1B3387

#1B3387 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.143 H 266.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#1B3387
RGBrgb(27, 51, 135)
HSLhsl(227, 67%, 32%)
HSVhsv(227, 80%, 53%)
CMYKcmyk(80%, 62.2%, 0%, 47.1%)
CIE-LABlab(24.79, 23.33, -49.53)
CIE-LCHlch(24.79, 54.75, 295.22°)
OKLaboklab(36.05% -0.0084 -0.1432)
OKLCHoklch(36.05% 0.143 266.6)
XYZxyz(6.0075, 4.3493, 23.4398)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3387 #876F1B
analogous
#1B6987 #1B3387 #391B87
triadic
#1B3387 #871B33 #33871B
tetradic
#1B3387 #871B69 #876F1B #1B8739
square
#1B3387 #871B69 #876F1B #1B8739
split-complementary
#1B3387 #87391B #69871B
monochromatic
#070C21 #112054 #1B3387 #2546BA #4364D9

Accessibility & contrast

On white

11.23
#1B3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1B3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3387
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3387#FFFFFF#000000##FFFFFF
##1B33871.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004958
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b3387;
/* rgb */ color: rgb(27, 51, 135);
/* oklch */ color: oklch(36.1% 0.143 266.6);
Tailwind
colors: {
  custom: {
    50: '#6a6aab',
    500: '#1b3387',
    950: '#000000',
  },
}
SCSS
$custom: #1b3387;
$custom-light: #6a6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3387",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 226.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36052,
    "c": 0.14342,
    "h": 266.6
  },
  "luminance": 0.0435
}

Semantic roles & 50–950 ramp

primary
#1B3387
secondary
#BAA044
accent
#C43EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B3387

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

Preview Lab → · Contrast checker → · Palette generator →

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