#1D3772#1D3772

#1D3772 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.107 H 263.9°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#1D3772
RGBrgb(29, 55, 114)
HSLhsl(222, 59%, 28%)
HSVhsv(222, 75%, 45%)
CMYKcmyk(74.6%, 51.8%, 0%, 55.3%)
CIE-LABlab(24.35, 12.29, -37.00)
CIE-LCHlch(24.35, 38.99, 288.38°)
OKLaboklab(35.21% -0.0114 -0.1062)
OKLCHoklch(35.21% 0.107 263.9)
XYZxyz(4.9091, 4.2080, 16.4698)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3772 #72581D
analogous
#1D6172 #1D3772 #2D1D72
triadic
#1D3772 #721D37 #37721D
tetradic
#1D3772 #721D61 #72581D #1D722D
square
#1D3772 #721D61 #72581D #1D722D
split-complementary
#1D3772 #722D1D #61721D
monochromatic
#060C18 #111F41 #1D3772 #294FA3 #3C68CD

Accessibility & contrast

On white

11.40
#1D3772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D3772
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3772#FFFFFF#000000##FFFFFF
##1D37721.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E74
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#00454F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d3772;
/* rgb */ color: rgb(29, 55, 114);
/* oklch */ color: oklch(35.2% 0.107 263.9);
Tailwind
colors: {
  custom: {
    50: '#656d9b',
    500: '#1d3772',
    950: '#000000',
  },
}
SCSS
$custom: #1d3772;
$custom-light: #656d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3772",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 114
  },
  "hsl": {
    "h": 221.647,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35208,
    "c": 0.10683,
    "h": 263.9
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#1D3772
secondary
#A68845
accent
#B245E3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #1D3772

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

Preview Lab → · Contrast checker → · Palette generator →

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