#1B1C87#1B1C87

#1B1C87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.170 H 271.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#1B1C87
RGBrgb(27, 28, 135)
HSLhsl(239, 67%, 32%)
HSVhsv(239, 80%, 53%)
CMYKcmyk(80%, 79.3%, 0%, 47.1%)
CIE-LABlab(19.28, 38.24, -58.61)
CIE-LCHlch(19.28, 69.98, 303.12°)
OKLaboklab(32.05% 0.0035 -0.1697)
OKLCHoklch(32.05% 0.17 271.2)
XYZxyz(5.2389, 2.8122, 23.1837)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1C87 #87861B
analogous
#1B5287 #1B1C87 #501B87
triadic
#1B1C87 #871B1C #1C871B
tetradic
#1B1C87 #871B52 #87861B #1B8750
square
#1B1C87 #871B52 #87861B #1B8750
split-complementary
#1B1C87 #87501B #52871B
monochromatic
#070721 #111154 #1B1C87 #2527BA #4344D9

Accessibility & contrast

On white

13.44
#1B1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1B1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1C87
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1C87#FFFFFF#000000##FFFFFF
##1B1C871.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b1c87;
/* rgb */ color: rgb(27, 28, 135);
/* oklch */ color: oklch(32.0% 0.170 271.2);
Tailwind
colors: {
  custom: {
    50: '#6c5aab',
    500: '#1b1c87',
    950: '#000000',
  },
}
SCSS
$custom: #1b1c87;
$custom-light: #6c5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1c87",
  "rgb": {
    "r": 27,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 239.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32048,
    "c": 0.16973,
    "h": 271.2
  },
  "luminance": 0.02813
}

Semantic roles & 50–950 ramp

primary
#1B1C87
secondary
#BAB944
accent
#E83EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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