#1D3771#1D3771

#1D3771 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.1% C 0.105 H 263.7°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#1D3771
RGBrgb(29, 55, 113)
HSLhsl(221, 59%, 28%)
HSVhsv(221, 74%, 44%)
CMYKcmyk(74.3%, 51.3%, 0%, 55.7%)
CIE-LABlab(24.27, 11.89, -36.48)
CIE-LCHlch(24.27, 38.37, 288.05°)
OKLaboklab(35.13% -0.0115 -0.1047)
OKLCHoklch(35.13% 0.105 263.7)
XYZxyz(4.8525, 4.1853, 16.1717)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3771 #71571D
analogous
#1D6171 #1D3771 #2D1D71
triadic
#1D3771 #711D37 #37711D
tetradic
#1D3771 #711D61 #71571D #1D712D
square
#1D3771 #711D61 #71571D #1D712D
split-complementary
#1D3771 #712D1D #61711D
monochromatic
#060C18 #111F40 #1D3771 #294FA2 #3C69CD

Accessibility & contrast

On white

11.43
#1D3771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1D3771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3771
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3771#FFFFFF#000000##FFFFFF
##1D37711.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d3771;
/* rgb */ color: rgb(29, 55, 113);
/* oklch */ color: oklch(35.1% 0.105 263.7);
Tailwind
colors: {
  custom: {
    50: '#656d9a',
    500: '#1d3771',
    950: '#000000',
  },
}
SCSS
$custom: #1d3771;
$custom-light: #656d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3771",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 221.429,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35129,
    "c": 0.10533,
    "h": 263.7
  },
  "luminance": 0.04186
}

Semantic roles & 50–950 ramp

primary
#1D3771
secondary
#A58744
accent
#B245E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1D3771

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

Preview Lab → · Contrast checker → · Palette generator →

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