#1B3879#1B3879

#1B3879 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.9% C 0.117 H 263.5°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#1B3879
RGBrgb(27, 56, 121)
HSLhsl(221, 64%, 29%)
HSVhsv(221, 78%, 47%)
CMYKcmyk(77.7%, 53.7%, 0%, 52.5%)
CIE-LABlab(25.08, 14.15, -40.27)
CIE-LCHlch(25.08, 42.68, 289.36°)
OKLaboklab(35.91% -0.0131 -0.1159)
OKLCHoklch(35.91% 0.117 263.5)
XYZxyz(5.3161, 4.4412, 18.6625)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3879 #795C1B
analogous
#1B6779 #1B3879 #2D1B79
triadic
#1B3879 #791B38 #38791B
tetradic
#1B3879 #791B67 #795C1B #1B792D
square
#1B3879 #791B67 #795C1B #1B792D
split-complementary
#1B3879 #792D1B #67791B
monochromatic
#060C19 #102147 #1B3879 #264FAB #3B6AD3

Accessibility & contrast

On white

11.12
#1B3879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1B3879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3879
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3879#FFFFFF#000000##FFFFFF
##1B38791.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D407B
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b3879;
/* rgb */ color: rgb(27, 56, 121);
/* oklch */ color: oklch(35.9% 0.117 263.5);
Tailwind
colors: {
  custom: {
    50: '#666ea0',
    500: '#1b3879',
    950: '#000000',
  },
}
SCSS
$custom: #1b3879;
$custom-light: #666ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3879",
  "rgb": {
    "r": 27,
    "g": 56,
    "b": 121
  },
  "hsl": {
    "h": 221.489,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35907,
    "c": 0.11661,
    "h": 263.5
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#1B3879
secondary
#AD8C43
accent
#B441E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07070F
muted
#7A7A7E

Preview Lab

Preview with #1B3879

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

Preview Lab → · Contrast checker → · Palette generator →

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