#1D3987#1D3987

#1D3987 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.135 H 265.3°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#1D3987
RGBrgb(29, 57, 135)
HSLhsl(224, 65%, 32%)
HSVhsv(224, 79%, 53%)
CMYKcmyk(78.5%, 57.8%, 0%, 47.1%)
CIE-LABlab(26.55, 19.38, -46.66)
CIE-LCHlch(26.55, 50.53, 292.56°)
OKLaboklab(37.39% -0.011 -0.1346)
OKLCHoklch(37.39% 0.135 265.3)
XYZxyz(6.3415, 4.9360, 23.5355)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3987 #876B1D
analogous
#1D6E87 #1D3987 #361D87
triadic
#1D3987 #871D39 #39871D
tetradic
#1D3987 #871D6E #876B1D #1D8736
square
#1D3987 #871D6E #876B1D #1D8736
split-complementary
#1D3987 #87361D #6E871D
monochromatic
#070E22 #122455 #1D3987 #284EB9 #476DD7

Accessibility & contrast

On white

10.57
#1D3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1D3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3987
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3987#FFFFFF#000000##FFFFFF
##1D39871.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1d3987;
/* rgb */ color: rgb(29, 57, 135);
/* oklch */ color: oklch(37.4% 0.135 265.3);
Tailwind
colors: {
  custom: {
    50: '#6a6eab',
    500: '#1d3987',
    950: '#000000',
  },
}
SCSS
$custom: #1d3987;
$custom-light: #6a6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3987",
  "rgb": {
    "r": 29,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 224.151,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37391,
    "c": 0.13507,
    "h": 265.3
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#1D3987
secondary
#B99B46
accent
#BB40E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3987

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

Preview Lab → · Contrast checker → · Palette generator →

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