#1A1A87#1A1A87

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

Color values

HEX#1A1A87
RGBrgb(26, 26, 135)
HSLhsl(240, 68%, 32%)
HSVhsv(240, 81%, 53%)
CMYKcmyk(80.7%, 80.7%, 0%, 47.1%)
CIE-LABlab(18.83, 39.28, -59.35)
CIE-LCHlch(18.83, 71.17, 303.50°)
OKLaboklab(31.72% 0.003 -0.1718)
OKLCHoklch(31.72% 0.172 271)
XYZxyz(5.1671, 2.7071, 23.1672)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1A87 #87871A
analogous
#1A5187 #1A1A87 #511A87
triadic
#1A1A87 #871A1A #1A871A
tetradic
#1A1A87 #871A51 #87871A #1A8751
square
#1A1A87 #871A51 #87871A #1A8751
split-complementary
#1A1A87 #87511A #51871A
monochromatic
#060620 #101054 #1A1A87 #2424BA #4141DA

Accessibility & contrast

On white

13.62
#1A1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A1A87
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1A87#FFFFFF#000000##FFFFFF
##1A1A871.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.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: #1a1a87;
/* rgb */ color: rgb(26, 26, 135);
/* oklch */ color: oklch(31.7% 0.172 271.0);
Tailwind
colors: {
  custom: {
    50: '#6c59ab',
    500: '#1a1a87',
    950: '#000000',
  },
}
SCSS
$custom: #1a1a87;
$custom-light: #6c59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1a87",
  "rgb": {
    "r": 26,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3172,
    "c": 0.17186,
    "h": 271
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#1A1A87
secondary
#BABA42
accent
#EB3DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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