#1B3787#1B3787

#1B3787 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.9% C 0.138 H 265.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#1B3787
RGBrgb(27, 55, 135)
HSLhsl(224, 67%, 32%)
HSVhsv(224, 80%, 53%)
CMYKcmyk(80%, 59.3%, 0%, 47.1%)
CIE-LABlab(25.90, 20.54, -47.72)
CIE-LCHlch(25.90, 51.96, 293.29°)
OKLaboklab(36.88% -0.0112 -0.1378)
OKLCHoklch(36.88% 0.138 265.4)
XYZxyz(6.1898, 4.7139, 23.5006)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3787 #876B1B
analogous
#1B6D87 #1B3787 #351B87
triadic
#1B3787 #871B37 #37871B
tetradic
#1B3787 #871B6D #876B1B #1B8735
square
#1B3787 #871B6D #876B1B #1B8735
split-complementary
#1B3787 #87351B #6D871B
monochromatic
#070D21 #112254 #1B3787 #254CBA #436AD9

Accessibility & contrast

On white

10.81
#1B3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1B3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3787
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3787#FFFFFF#000000##FFFFFF
##1B37871.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b3787;
/* rgb */ color: rgb(27, 55, 135);
/* oklch */ color: oklch(36.9% 0.138 265.4);
Tailwind
colors: {
  custom: {
    50: '#6a6dab',
    500: '#1b3787',
    950: '#000000',
  },
}
SCSS
$custom: #1b3787;
$custom-light: #6a6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3787",
  "rgb": {
    "r": 27,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 224.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36881,
    "c": 0.13825,
    "h": 265.4
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#1B3787
secondary
#BA9B44
accent
#BD3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3787

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

Preview Lab → · Contrast checker → · Palette generator →

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