#1D3172#1D3172

#1D3172 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.8% C 0.115 H 267.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1D3172
RGBrgb(29, 49, 114)
HSLhsl(226, 59%, 28%)
HSVhsv(226, 75%, 45%)
CMYKcmyk(74.6%, 57%, 0%, 55.3%)
CIE-LABlab(22.56, 16.56, -39.89)
CIE-LCHlch(22.56, 43.19, 292.54°)
OKLaboklab(33.85% -0.0058 -0.1148)
OKLCHoklch(33.85% 0.115 267.1)
XYZxyz(4.6412, 3.6723, 16.3805)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3172 #725E1D
analogous
#1D5B72 #1D3172 #331D72
triadic
#1D3172 #721D31 #31721D
tetradic
#1D3172 #721D5B #725E1D #1D7233
square
#1D3172 #721D5B #725E1D #1D7233
split-complementary
#1D3172 #72331D #5B721D
monochromatic
#060A18 #111C41 #1D3172 #2946A3 #3C5ECD

Accessibility & contrast

On white

12.11
#1D3172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D3172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3172
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3172#FFFFFF#000000##FFFFFF
##1D31721.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d3172;
/* rgb */ color: rgb(29, 49, 114);
/* oklch */ color: oklch(33.8% 0.115 267.1);
Tailwind
colors: {
  custom: {
    50: '#66689b',
    500: '#1d3172',
    950: '#000000',
  },
}
SCSS
$custom: #1d3172;
$custom-light: #66689b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3172",
  "rgb": {
    "r": 29,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 225.882,
    "s": 59.441,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33849,
    "c": 0.115,
    "h": 267.1
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#1D3172
secondary
#A68F45
accent
#BE45E3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1D3172

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

Preview Lab → · Contrast checker → · Palette generator →

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