#1B1A87#1B1A87

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

Color values

HEX#1B1A87
RGBrgb(27, 26, 135)
HSLhsl(241, 68%, 32%)
HSVhsv(241, 81%, 53%)
CMYKcmyk(80%, 80.7%, 0%, 47.1%)
CIE-LABlab(18.89, 39.35, -59.25)
CIE-LCHlch(18.89, 71.13, 303.59°)
OKLaboklab(31.78% 0.0042 -0.1715)
OKLCHoklch(31.78% 0.172 271.4)
XYZxyz(5.1931, 2.7205, 23.1684)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1A87 #86871A
analogous
#1A5087 #1B1A87 #521A87
triadic
#1B1A87 #871B1A #1A871B
tetradic
#1B1A87 #871A50 #86871A #1A8752
square
#1B1A87 #871A50 #86871A #1A8752
split-complementary
#1B1A87 #87521A #50871A
monochromatic
#060620 #111054 #1B1A87 #2524BA #4241DA

Accessibility & contrast

On white

13.60
#1B1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B1A87
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1A87#FFFFFF#000000##FFFFFF
##1B1A871.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b1a87;
/* rgb */ color: rgb(27, 26, 135);
/* oklch */ color: oklch(31.8% 0.172 271.4);
Tailwind
colors: {
  custom: {
    50: '#6d59ab',
    500: '#1b1a87',
    950: '#000000',
  },
}
SCSS
$custom: #1b1a87;
$custom-light: #6d59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1a87",
  "rgb": {
    "r": 27,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 240.55,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31776,
    "c": 0.17158,
    "h": 271.4
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#1B1A87
secondary
#B9BA42
accent
#EB3DE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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