#1B3789#1B3789

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

Color values

HEX#1B3789
RGBrgb(27, 55, 137)
HSLhsl(225, 67%, 32%)
HSVhsv(225, 80%, 54%)
CMYKcmyk(80.3%, 59.9%, 0%, 46.3%)
CIE-LABlab(26.07, 21.35, -48.69)
CIE-LCHlch(26.07, 53.17, 293.67°)
OKLaboklab(37.06% -0.0111 -0.1406)
OKLCHoklch(37.06% 0.141 265.5)
XYZxyz(6.3319, 4.7708, 24.2492)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3789 #896D1B
analogous
#1B6E89 #1B3789 #361B89
triadic
#1B3789 #891B37 #37891B
tetradic
#1B3789 #891B6E #896D1B #1B8936
square
#1B3789 #891B6E #896D1B #1B8936
split-complementary
#1B3789 #89361B #6E891B
monochromatic
#070E23 #112256 #1B3789 #254CBC #446ADA

Accessibility & contrast

On white

10.74
#1B3789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1B3789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3789
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3789#FFFFFF#000000##FFFFFF
##1B37891.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1b3789;
/* rgb */ color: rgb(27, 55, 137);
/* oklch */ color: oklch(37.1% 0.141 265.5);
Tailwind
colors: {
  custom: {
    50: '#6a6dac',
    500: '#1b3789',
    950: '#000000',
  },
}
SCSS
$custom: #1b3789;
$custom-light: #6a6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3789",
  "rgb": {
    "r": 27,
    "g": 55,
    "b": 137
  },
  "hsl": {
    "h": 224.727,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37059,
    "c": 0.14109,
    "h": 265.5
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#1B3789
secondary
#BC9D44
accent
#BE3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1B3789

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

Preview Lab → · Contrast checker → · Palette generator →

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