#1D2987#1D2987

#1D2987 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.155 H 269.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#1D2987
RGBrgb(29, 41, 135)
HSLhsl(233, 65%, 32%)
HSVhsv(233, 79%, 53%)
CMYKcmyk(78.5%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.29, 30.35, -53.64)
CIE-LCHlch(22.29, 61.63, 299.50°)
OKLaboklab(34.23% -0.0003 -0.1552)
OKLCHoklch(34.23% 0.155 269.9)
XYZxyz(5.6713, 3.5957, 23.3121)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2987 #877B1D
analogous
#1D5E87 #1D2987 #461D87
triadic
#1D2987 #871D29 #29871D
tetradic
#1D2987 #871D5E #877B1D #1D8746
square
#1D2987 #871D5E #877B1D #1D8746
split-complementary
#1D2987 #87461D #5E871D
monochromatic
#070A22 #121A55 #1D2987 #2838B9 #4757D7

Accessibility & contrast

On white

12.21
#1D2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1D2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2987
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2987#FFFFFF#000000##FFFFFF
##1D29871.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d2987;
/* rgb */ color: rgb(29, 41, 135);
/* oklch */ color: oklch(34.2% 0.155 269.9);
Tailwind
colors: {
  custom: {
    50: '#6c63ab',
    500: '#1d2987',
    950: '#000000',
  },
}
SCSS
$custom: #1d2987;
$custom-light: #6c63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2987",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 233.208,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34233,
    "c": 0.15523,
    "h": 269.9
  },
  "luminance": 0.03596
}

Semantic roles & 50–950 ramp

primary
#1D2987
secondary
#B9AC46
accent
#D540E8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D2987

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

Preview Lab → · Contrast checker → · Palette generator →

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