#1B1987#1B1987

#1B1987 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.172 H 271.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1B1987
RGBrgb(27, 25, 135)
HSLhsl(241, 69%, 31%)
HSVhsv(241, 81%, 53%)
CMYKcmyk(80%, 81.5%, 0%, 47.1%)
CIE-LABlab(18.70, 39.89, -59.56)
CIE-LCHlch(18.70, 71.68, 303.81°)
OKLaboklab(31.65% 0.0045 -0.1724)
OKLCHoklch(31.65% 0.172 271.5)
XYZxyz(5.1713, 2.6770, 23.1611)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1987 #858719
analogous
#194E87 #1B1987 #521987
triadic
#1B1987 #871B19 #19871B
tetradic
#1B1987 #87194E #858719 #198752
square
#1B1987 #87194E #858719 #198752
split-complementary
#1B1987 #875219 #4E8719
monochromatic
#060620 #110F53 #1B1987 #2523BB #423FDB

Accessibility & contrast

On white

13.68
#1B1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1987
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1987#FFFFFF#000000##FFFFFF
##1B19871.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1987;
/* rgb */ color: rgb(27, 25, 135);
/* oklch */ color: oklch(31.6% 0.172 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d58ab',
    500: '#1b1987',
    950: '#000000',
  },
}
SCSS
$custom: #1b1987;
$custom-light: #6d58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1987",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 241.091,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31645,
    "c": 0.17247,
    "h": 271.5
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#1B1987
secondary
#B8BA41
accent
#EC3CE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1987

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

Preview Lab → · Contrast checker → · Palette generator →

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