#1D3F7D#1D3F7D

#1D3F7D is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.113 H 261.2°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#1D3F7D
RGBrgb(29, 63, 125)
HSLhsl(219, 62%, 30%)
HSVhsv(219, 77%, 49%)
CMYKcmyk(76.8%, 49.6%, 0%, 51%)
CIE-LABlab(27.56, 11.15, -38.78)
CIE-LCHlch(27.56, 40.35, 286.03°)
OKLaboklab(37.92% -0.0172 -0.1113)
OKLCHoklch(37.92% 0.113 261.2)
XYZxyz(5.9845, 5.2962, 20.1049)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F7D #7D5B1D
analogous
#1D6F7D #1D3F7D #2B1D7D
triadic
#1D3F7D #7D1D3F #3F7D1D
tetradic
#1D3F7D #7D1D6F #7D5B1D #1D7D2B
square
#1D3F7D #7D1D6F #7D5B1D #1D7D2B
split-complementary
#1D3F7D #7D2B1D #6F7D1D
monochromatic
#060D1A #11264B #1D3F7D #2958AF #4175D3

Accessibility & contrast

On white

10.20
#1D3F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1D3F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F7D
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F7D#FFFFFF#000000##FFFFFF
##1D3F7D1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#023D7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d3f7d;
/* rgb */ color: rgb(29, 63, 125);
/* oklch */ color: oklch(37.9% 0.113 261.2);
Tailwind
colors: {
  custom: {
    50: '#6773a3',
    500: '#1d3f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f7d;
$custom-light: #6773a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f7d",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 218.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37919,
    "c": 0.11263,
    "h": 261.2
  },
  "luminance": 0.05297
}

Semantic roles & 50–950 ramp

primary
#1D3F7D
secondary
#B18B45
accent
#AC42E5
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1D3F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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