#1D3371#1D3371

#1D3371 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.2% C 0.111 H 266.0°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#1D3371
RGBrgb(29, 51, 113)
HSLhsl(224, 59%, 28%)
HSVhsv(224, 74%, 44%)
CMYKcmyk(74.3%, 54.9%, 0%, 55.7%)
CIE-LABlab(23.07, 14.73, -38.42)
CIE-LCHlch(23.07, 41.15, 290.98°)
OKLaboklab(34.21% -0.0078 -0.1105)
OKLCHoklch(34.21% 0.111 266)
XYZxyz(4.6701, 3.8206, 16.1109)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3371 #715B1D
analogous
#1D5D71 #1D3371 #311D71
triadic
#1D3371 #711D33 #33711D
tetradic
#1D3371 #711D5D #715B1D #1D7131
square
#1D3371 #711D5D #715B1D #1D7131
split-complementary
#1D3371 #71311D #5D711D
monochromatic
#060B18 #111D40 #1D3371 #2949A2 #3C62CD

Accessibility & contrast

On white

11.90
#1D3371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1D3371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3371
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3371#FFFFFF#000000##FFFFFF
##1D33711.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3B73
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d3371;
/* rgb */ color: rgb(29, 51, 113);
/* oklch */ color: oklch(34.2% 0.111 266.0);
Tailwind
colors: {
  custom: {
    50: '#656a9a',
    500: '#1d3371',
    950: '#000000',
  },
}
SCSS
$custom: #1d3371;
$custom-light: #656a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3371",
  "rgb": {
    "r": 29,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 224.286,
    "s": 59.155,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34212,
    "c": 0.11076,
    "h": 266
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#1D3371
secondary
#A58C44
accent
#B945E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1D3371

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

Preview Lab → · Contrast checker → · Palette generator →

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