#1D1B87#1D1B87

#1D1B87 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.170 H 272.1°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#1D1B87
RGBrgb(29, 27, 135)
HSLhsl(241, 67%, 32%)
HSVhsv(241, 80%, 53%)
CMYKcmyk(78.5%, 80%, 0%, 47.1%)
CIE-LABlab(19.20, 38.95, -58.73)
CIE-LCHlch(19.20, 70.47, 303.55°)
OKLaboklab(32.03% 0.0063 -0.17)
OKLCHoklch(32.03% 0.17 272.1)
XYZxyz(5.2703, 2.7938, 23.1785)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B87 #85871B
analogous
#1B4F87 #1D1B87 #531B87
triadic
#1D1B87 #871D1B #1B871D
tetradic
#1D1B87 #871B4F #85871B #1B8753
square
#1D1B87 #871B4F #85871B #1B8753
split-complementary
#1D1B87 #87531B #4F871B
monochromatic
#070721 #121154 #1D1B87 #2825BA #4643D9

Accessibility & contrast

On white

13.47
#1D1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1B87
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B87#FFFFFF#000000##FFFFFF
##1D1B871.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1b87;
/* rgb */ color: rgb(29, 27, 135);
/* oklch */ color: oklch(32.0% 0.170 272.1);
Tailwind
colors: {
  custom: {
    50: '#6d5aab',
    500: '#1d1b87',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b87;
$custom-light: #6d5aab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b87",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 241.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32026,
    "c": 0.17012,
    "h": 272.1
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#1D1B87
secondary
#B8BA44
accent
#EA3EE6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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