#1D1D87#1D1D87

#1D1D87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.168 H 271.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#1D1D87
RGBrgb(29, 29, 135)
HSLhsl(240, 65%, 32%)
HSVhsv(240, 79%, 53%)
CMYKcmyk(78.5%, 78.5%, 0%, 47.1%)
CIE-LABlab(19.59, 37.82, -58.08)
CIE-LCHlch(19.59, 69.31, 303.07°)
OKLaboklab(32.3% 0.0055 -0.1681)
OKLCHoklch(32.3% 0.168 271.9)
XYZxyz(5.3178, 2.8886, 23.1943)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1D87 #87871D
analogous
#1D5287 #1D1D87 #521D87
triadic
#1D1D87 #871D1D #1D871D
tetradic
#1D1D87 #871D52 #87871D #1D8752
square
#1D1D87 #871D52 #87871D #1D8752
split-complementary
#1D1D87 #87521D #52871D
monochromatic
#070722 #121255 #1D1D87 #2828B9 #4747D7

Accessibility & contrast

On white

13.31
#1D1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1D87
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1D87#FFFFFF#000000##FFFFFF
##1D1D871.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d1d87;
/* rgb */ color: rgb(29, 29, 135);
/* oklch */ color: oklch(32.3% 0.168 271.9);
Tailwind
colors: {
  custom: {
    50: '#6d5bab',
    500: '#1d1d87',
    950: '#000000',
  },
}
SCSS
$custom: #1d1d87;
$custom-light: #6d5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1d87",
  "rgb": {
    "r": 29,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 240,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32303,
    "c": 0.16822,
    "h": 271.9
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#1D1D87
secondary
#B9B946
accent
#E840E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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