#1A1B87#1A1B87

#1A1B87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.171 H 270.9°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#1A1B87
RGBrgb(26, 27, 135)
HSLhsl(239, 68%, 32%)
HSVhsv(239, 81%, 53%)
CMYKcmyk(80.7%, 80%, 0%, 47.1%)
CIE-LABlab(19.02, 38.73, -59.03)
CIE-LCHlch(19.02, 70.60, 303.27°)
OKLaboklab(31.86% 0.0027 -0.1709)
OKLCHoklch(31.86% 0.171 270.9)
XYZxyz(5.1896, 2.7522, 23.1747)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1B87 #87861A
analogous
#1A5287 #1A1B87 #501A87
triadic
#1A1B87 #871A1B #1B871A
tetradic
#1A1B87 #871A52 #87861A #1A8750
square
#1A1B87 #871A52 #87861A #1A8750
split-complementary
#1A1B87 #87501A #52871A
monochromatic
#060620 #101154 #1A1B87 #2425BA #4142DA

Accessibility & contrast

On white

13.54
#1A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1A1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1B87
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1B87#FFFFFF#000000##FFFFFF
##1A1B871.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a1b87;
/* rgb */ color: rgb(26, 27, 135);
/* oklch */ color: oklch(31.9% 0.171 270.9);
Tailwind
colors: {
  custom: {
    50: '#6c59ab',
    500: '#1a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #1a1b87;
$custom-light: #6c59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1b87",
  "rgb": {
    "r": 26,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 239.45,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31855,
    "c": 0.17094,
    "h": 270.9
  },
  "luminance": 0.02753
}

Semantic roles & 50–950 ramp

primary
#1A1B87
secondary
#BAB942
accent
#E93DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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