#1D3871#1D3871

#1D3871 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.4% C 0.104 H 263.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#1D3871
RGBrgb(29, 56, 113)
HSLhsl(221, 59%, 28%)
HSVhsv(221, 74%, 44%)
CMYKcmyk(74.3%, 50.4%, 0%, 55.7%)
CIE-LABlab(24.58, 11.18, -35.98)
CIE-LCHlch(24.58, 37.68, 287.26°)
OKLaboklab(35.36% -0.0125 -0.1032)
OKLCHoklch(35.36% 0.104 263.1)
XYZxyz(4.9004, 4.2813, 16.1877)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3871 #71561D
analogous
#1D6271 #1D3871 #2C1D71
triadic
#1D3871 #711D38 #38711D
tetradic
#1D3871 #711D62 #71561D #1D712C
square
#1D3871 #711D62 #71561D #1D712C
split-complementary
#1D3871 #712C1D #62711D
monochromatic
#060C18 #112040 #1D3871 #2950A2 #3C6ACD

Accessibility & contrast

On white

11.31
#1D3871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1D3871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3871
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3871#FFFFFF#000000##FFFFFF
##1D38711.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193E73
Deuteranopia (green-blind)
#033770
Tritanopia (blue-blind)
#00454F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d3871;
/* rgb */ color: rgb(29, 56, 113);
/* oklch */ color: oklch(35.4% 0.104 263.1);
Tailwind
colors: {
  custom: {
    50: '#656e9a',
    500: '#1d3871',
    950: '#000000',
  },
}
SCSS
$custom: #1d3871;
$custom-light: #656e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3871",
  "rgb": {
    "r": 29,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 220.714,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35363,
    "c": 0.10398,
    "h": 263.1
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#1D3871
secondary
#A58644
accent
#B045E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1D3871

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

Preview Lab → · Contrast checker → · Palette generator →

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