#1A1987#1A1987

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

Color values

HEX#1A1987
RGBrgb(26, 25, 135)
HSLhsl(241, 69%, 31%)
HSVhsv(241, 81%, 53%)
CMYKcmyk(80.7%, 81.5%, 0%, 47.1%)
CIE-LABlab(18.64, 39.82, -59.66)
CIE-LCHlch(18.64, 71.73, 303.72°)
OKLaboklab(31.59% 0.0033 -0.1727)
OKLCHoklch(31.59% 0.173 271.1)
XYZxyz(5.1453, 2.6636, 23.1599)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1987 #868719
analogous
#194F87 #1A1987 #511987
triadic
#1A1987 #871A19 #19871A
tetradic
#1A1987 #87194F #868719 #198751
square
#1A1987 #87194F #868719 #198751
split-complementary
#1A1987 #875119 #4F8719
monochromatic
#060620 #100F53 #1A1987 #2423BB #403FDB

Accessibility & contrast

On white

13.70
#1A1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1A1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1987
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1987#FFFFFF#000000##FFFFFF
##1A19871.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.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: #1a1987;
/* rgb */ color: rgb(26, 25, 135);
/* oklch */ color: oklch(31.6% 0.173 271.1);
Tailwind
colors: {
  custom: {
    50: '#6c58ab',
    500: '#1a1987',
    950: '#000000',
  },
}
SCSS
$custom: #1a1987;
$custom-light: #6c58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1987",
  "rgb": {
    "r": 26,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 240.545,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31589,
    "c": 0.17274,
    "h": 271.1
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#1A1987
secondary
#B9BA41
accent
#EC3CEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1A1987

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

Preview Lab → · Contrast checker → · Palette generator →

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