#1B2787#1B2787

#1B2787 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.158 H 269.5°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1B2787
RGBrgb(27, 39, 135)
HSLhsl(233, 67%, 32%)
HSVhsv(233, 80%, 53%)
CMYKcmyk(80%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.70, 31.47, -54.61)
CIE-LCHlch(21.70, 63.03, 299.96°)
OKLaboklab(33.78% -0.0013 -0.1581)
OKLCHoklch(33.78% 0.158 269.5)
XYZxyz(5.5492, 3.4327, 23.2871)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2787 #877B1B
analogous
#1B5D87 #1B2787 #451B87
triadic
#1B2787 #871B27 #27871B
tetradic
#1B2787 #871B5D #877B1B #1B8745
square
#1B2787 #871B5D #877B1B #1B8745
split-complementary
#1B2787 #87451B #5D871B
monochromatic
#070A21 #111854 #1B2787 #2536BA #4354D9

Accessibility & contrast

On white

12.45
#1B2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2787
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2787#FFFFFF#000000##FFFFFF
##1B27871.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2787;
/* rgb */ color: rgb(27, 39, 135);
/* oklch */ color: oklch(33.8% 0.158 269.5);
Tailwind
colors: {
  custom: {
    50: '#6b61ab',
    500: '#1b2787',
    950: '#000000',
  },
}
SCSS
$custom: #1b2787;
$custom-light: #6b61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2787",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 233.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33779,
    "c": 0.15812,
    "h": 269.5
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#1B2787
secondary
#BAAD44
accent
#D73EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2787

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

Preview Lab → · Contrast checker → · Palette generator →

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