#1D1A87#1D1A87

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

Color values

HEX#1D1A87
RGBrgb(29, 26, 135)
HSLhsl(242, 68%, 32%)
HSVhsv(242, 81%, 53%)
CMYKcmyk(78.5%, 80.7%, 0%, 47.1%)
CIE-LABlab(19.01, 39.50, -59.05)
CIE-LCHlch(19.01, 71.04, 303.78°)
OKLaboklab(31.89% 0.0066 -0.1709)
OKLCHoklch(31.89% 0.171 272.2)
XYZxyz(5.2478, 2.7487, 23.1710)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1A87 #84871A
analogous
#1A4E87 #1D1A87 #541A87
triadic
#1D1A87 #871D1A #1A871D
tetradic
#1D1A87 #871A4E #84871A #1A8754
square
#1D1A87 #871A4E #84871A #1A8754
split-complementary
#1D1A87 #87541A #4E871A
monochromatic
#070620 #121054 #1D1A87 #2824BA #4541DA

Accessibility & contrast

On white

13.55
#1D1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1A87
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1A87#FFFFFF#000000##FFFFFF
##1D1A871.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1a87;
/* rgb */ color: rgb(29, 26, 135);
/* oklch */ color: oklch(31.9% 0.171 272.2);
Tailwind
colors: {
  custom: {
    50: '#6d59ab',
    500: '#1d1a87',
    950: '#000000',
  },
}
SCSS
$custom: #1d1a87;
$custom-light: #6d59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1a87",
  "rgb": {
    "r": 29,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 241.651,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31892,
    "c": 0.17103,
    "h": 272.2
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#1D1A87
secondary
#B7BA42
accent
#EB3DE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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