#1D4987#1D4987

#1D4987 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.0% C 0.114 H 257.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#1D4987
RGBrgb(29, 73, 135)
HSLhsl(215, 65%, 32%)
HSVhsv(215, 79%, 53%)
CMYKcmyk(78.5%, 45.9%, 0%, 47.1%)
CIE-LABlab(31.29, 8.33, -39.02)
CIE-LCHlch(31.29, 39.89, 282.05°)
OKLaboklab(41.01% -0.0244 -0.1118)
OKLCHoklch(41.01% 0.114 257.7)
XYZxyz(7.2608, 6.7747, 23.8420)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4987 #875B1D
analogous
#1D7E87 #1D4987 #261D87
triadic
#1D4987 #871D49 #49871D
tetradic
#1D4987 #871D7E #875B1D #1D8726
square
#1D4987 #871D7E #875B1D #1D8726
split-complementary
#1D4987 #87261D #7E871D
monochromatic
#071322 #122E55 #1D4987 #2864B9 #4783D7

Accessibility & contrast

On white

8.92
#1D4987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1D4987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4987
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4987#FFFFFF#000000##FFFFFF
##1D49871.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F89
Deuteranopia (green-blind)
#134586
Tritanopia (blue-blind)
#005861
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1d4987;
/* rgb */ color: rgb(29, 73, 135);
/* oklch */ color: oklch(41.0% 0.114 257.7);
Tailwind
colors: {
  custom: {
    50: '#6a7baa',
    500: '#1d4987',
    950: '#000000',
  },
}
SCSS
$custom: #1d4987;
$custom-light: #6a7baa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4987",
  "rgb": {
    "r": 29,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 215.094,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41007,
    "c": 0.11445,
    "h": 257.7
  },
  "luminance": 0.06776
}

Semantic roles & 50–950 ramp

primary
#1D4987
secondary
#B98A46
accent
#A240E8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1D4987

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

Preview Lab → · Contrast checker → · Palette generator →

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