#1D3D7D#1D3D7D

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

Color values

HEX#1D3D7D
RGBrgb(29, 61, 125)
HSLhsl(220, 62%, 30%)
HSVhsv(220, 77%, 49%)
CMYKcmyk(76.8%, 51.2%, 0%, 51%)
CIE-LABlab(26.96, 12.54, -39.75)
CIE-LCHlch(26.96, 41.69, 287.51°)
OKLaboklab(37.46% -0.0154 -0.1142)
OKLCHoklch(37.46% 0.115 262.3)
XYZxyz(5.8758, 5.0787, 20.0687)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3D7D #7D5D1D
analogous
#1D6D7D #1D3D7D #2D1D7D
triadic
#1D3D7D #7D1D3D #3D7D1D
tetradic
#1D3D7D #7D1D6D #7D5D1D #1D7D2D
square
#1D3D7D #7D1D6D #7D5D1D #1D7D2D
split-complementary
#1D3D7D #7D2D1D #6D7D1D
monochromatic
#060D1A #11254B #1D3D7D #2955AF #4172D3

Accessibility & contrast

On white

10.42
#1D3D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D3D7D
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3D7D#FFFFFF#000000##FFFFFF
##1D3D7D1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18447F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d3d7d;
/* rgb */ color: rgb(29, 61, 125);
/* oklch */ color: oklch(37.5% 0.115 262.3);
Tailwind
colors: {
  custom: {
    50: '#6872a3',
    500: '#1d3d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1d3d7d;
$custom-light: #6872a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3d7d",
  "rgb": {
    "r": 29,
    "g": 61,
    "b": 125
  },
  "hsl": {
    "h": 220,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37456,
    "c": 0.11525,
    "h": 262.3
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#1D3D7D
secondary
#B18D45
accent
#AF42E5
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1D3D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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