#1B3874#1B3874

#1B3874 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.5% C 0.109 H 262.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1B3874
RGBrgb(27, 56, 116)
HSLhsl(220, 62%, 28%)
HSVhsv(220, 77%, 45%)
CMYKcmyk(76.7%, 51.7%, 0%, 54.5%)
CIE-LABlab(24.71, 12.10, -37.70)
CIE-LCHlch(24.71, 39.59, 287.79°)
OKLaboklab(35.5% -0.0138 -0.1083)
OKLCHoklch(35.5% 0.109 262.7)
XYZxyz(5.0174, 4.3218, 17.0894)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3874 #74571B
analogous
#1B6474 #1B3874 #2A1B74
triadic
#1B3874 #741B38 #38741B
tetradic
#1B3874 #741B64 #74571B #1B742A
square
#1B3874 #741B64 #74571B #1B742A
split-complementary
#1B3874 #742A1B #64741B
monochromatic
#060C19 #0F2042 #1B3874 #2750A6 #396AD1

Accessibility & contrast

On white

11.26
#1B3874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1B3874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3874
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3874#FFFFFF#000000##FFFFFF
##1B38741.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153F76
Deuteranopia (green-blind)
#003773
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1b3874;
/* rgb */ color: rgb(27, 56, 116);
/* oklch */ color: oklch(35.5% 0.109 262.7);
Tailwind
colors: {
  custom: {
    50: '#656e9c',
    500: '#1b3874',
    950: '#000000',
  },
}
SCSS
$custom: #1b3874;
$custom-light: #656e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3874",
  "rgb": {
    "r": 27,
    "g": 56,
    "b": 116
  },
  "hsl": {
    "h": 220.449,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35505,
    "c": 0.10917,
    "h": 262.7
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#1B3874
secondary
#A98742
accent
#B042E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1B3874

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

Preview Lab → · Contrast checker → · Palette generator →

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