#1B3786#1B3786

#1B3786 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.137 H 265.3°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#1B3786
RGBrgb(27, 55, 134)
HSLhsl(224, 66%, 32%)
HSVhsv(224, 80%, 53%)
CMYKcmyk(79.9%, 59%, 0%, 47.5%)
CIE-LABlab(25.82, 20.14, -47.23)
CIE-LCHlch(25.82, 51.35, 293.09°)
OKLaboklab(36.79% -0.0112 -0.1364)
OKLCHoklch(36.79% 0.137 265.3)
XYZxyz(6.1197, 4.6859, 23.1316)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3786 #866A1B
analogous
#1B6D86 #1B3786 #351B86
triadic
#1B3786 #861B37 #37861B
tetradic
#1B3786 #861B6D #866A1B #1B8635
square
#1B3786 #861B6D #866A1B #1B8635
split-complementary
#1B3786 #86351B #6D861B
monochromatic
#060D20 #112253 #1B3786 #254CB9 #426AD9

Accessibility & contrast

On white

10.84
#1B3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B3786
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3786#FFFFFF#000000##FFFFFF
##1B37861.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b3786;
/* rgb */ color: rgb(27, 55, 134);
/* oklch */ color: oklch(36.8% 0.137 265.3);
Tailwind
colors: {
  custom: {
    50: '#6a6daa',
    500: '#1b3786',
    950: '#000000',
  },
}
SCSS
$custom: #1b3786;
$custom-light: #6a6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3786",
  "rgb": {
    "r": 27,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 224.299,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36792,
    "c": 0.13683,
    "h": 265.3
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#1B3786
secondary
#B99A44
accent
#BD3EE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1B3786

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

Preview Lab → · Contrast checker → · Palette generator →

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