#1D3D7F#1D3D7F

#1D3D7F is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.6% C 0.118 H 262.7°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1D3D7F
RGBrgb(29, 61, 127)
HSLhsl(220, 63%, 31%)
HSVhsv(220, 77%, 50%)
CMYKcmyk(77.2%, 52%, 0%, 50.2%)
CIE-LABlab(27.10, 13.35, -40.77)
CIE-LCHlch(27.10, 42.91, 288.13°)
OKLaboklab(37.61% -0.0151 -0.1172)
OKLCHoklch(37.61% 0.118 262.7)
XYZxyz(6.0048, 5.1303, 20.7483)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D7F #7F5F1D
analogous
#1D6E7F #1D3D7F #2E1D7F
triadic
#1D3D7F #7F1D3D #3D7F1D
tetradic
#1D3D7F #7F1D6E #7F5F1D #1D7F2E
square
#1D3D7F #7F1D6E #7F5F1D #1D7F2E
split-complementary
#1D3D7F #7F2E1D #6E7F1D
monochromatic
#060D1B #12254D #1D3D7F #2855B1 #4272D4

Accessibility & contrast

On white

10.36
#1D3D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1D3D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3D7F
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D7F#FFFFFF#000000##FFFFFF
##1D3D7F1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154581
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d3d7f;
/* rgb */ color: rgb(29, 61, 127);
/* oklch */ color: oklch(37.6% 0.118 262.7);
Tailwind
colors: {
  custom: {
    50: '#6872a5',
    500: '#1d3d7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d7f;
$custom-light: #6872a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d7f",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 127
  },
  "hsl": {
    "h": 220.408,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37613,
    "c": 0.11819,
    "h": 262.7
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D3D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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