#1B2786#1B2786

#1B2786 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.157 H 269.6°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#1B2786
RGBrgb(27, 39, 134)
HSLhsl(233, 66%, 32%)
HSVhsv(233, 80%, 53%)
CMYKcmyk(79.9%, 70.9%, 0%, 47.5%)
CIE-LABlab(21.60, 31.09, -54.15)
CIE-LCHlch(21.60, 62.44, 299.87°)
OKLaboklab(33.67% -0.0012 -0.1568)
OKLCHoklch(33.67% 0.157 269.6)
XYZxyz(5.4791, 3.4047, 22.9180)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2786 #867A1B
analogous
#1B5D86 #1B2786 #451B86
triadic
#1B2786 #861B27 #27861B
tetradic
#1B2786 #861B5D #867A1B #1B8645
square
#1B2786 #861B5D #867A1B #1B8645
split-complementary
#1B2786 #86451B #5D861B
monochromatic
#060920 #111853 #1B2786 #2536B9 #4253D9

Accessibility & contrast

On white

12.49
#1B2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2786
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2786#FFFFFF#000000##FFFFFF
##1B27861.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2786;
/* rgb */ color: rgb(27, 39, 134);
/* oklch */ color: oklch(33.7% 0.157 269.6);
Tailwind
colors: {
  custom: {
    50: '#6b61aa',
    500: '#1b2786',
    950: '#000000',
  },
}
SCSS
$custom: #1b2786;
$custom-light: #6b61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2786",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 233.271,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33674,
    "c": 0.15678,
    "h": 269.6
  },
  "luminance": 0.03405
}

Semantic roles & 50–950 ramp

primary
#1B2786
secondary
#B9AC44
accent
#D63EE9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2786

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

Preview Lab → · Contrast checker → · Palette generator →

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