#1D3D7E#1D3D7E

#1D3D7E is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.5% C 0.117 H 262.5°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#1D3D7E
RGBrgb(29, 61, 126)
HSLhsl(220, 63%, 30%)
HSVhsv(220, 77%, 49%)
CMYKcmyk(77%, 51.6%, 0%, 50.6%)
CIE-LABlab(27.03, 12.95, -40.27)
CIE-LCHlch(27.03, 42.30, 287.82°)
OKLaboklab(37.54% -0.0152 -0.1157)
OKLCHoklch(37.54% 0.117 262.5)
XYZxyz(5.9400, 5.1044, 20.4068)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D7E #7E5E1D
analogous
#1D6D7E #1D3D7E #2D1D7E
triadic
#1D3D7E #7E1D3D #3D7E1D
tetradic
#1D3D7E #7E1D6D #7E5E1D #1D7E2D
square
#1D3D7E #7E1D6D #7E5E1D #1D7E2D
split-complementary
#1D3D7E #7E2D1D #6D7E1D
monochromatic
#060D1B #12254C #1D3D7E #2855B0 #4272D3

Accessibility & contrast

On white

10.39
#1D3D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1D3D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D7E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D7E#FFFFFF#000000##FFFFFF
##1D3D7E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164580
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d3d7e;
/* rgb */ color: rgb(29, 61, 126);
/* oklch */ color: oklch(37.5% 0.117 262.5);
Tailwind
colors: {
  custom: {
    50: '#6872a4',
    500: '#1d3d7e',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d7e;
$custom-light: #6872a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d7e",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 220.206,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37535,
    "c": 0.11672,
    "h": 262.5
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#1D3D7E
secondary
#B18E45
accent
#B042E6
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D3D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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