#1D3F7F#1D3F7F

#1D3F7F is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.1% C 0.116 H 261.6°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#1D3F7F
RGBrgb(29, 63, 127)
HSLhsl(219, 63%, 31%)
HSVhsv(219, 77%, 50%)
CMYKcmyk(77.2%, 50.4%, 0%, 50.2%)
CIE-LABlab(27.70, 11.96, -39.81)
CIE-LCHlch(27.70, 41.56, 286.72°)
OKLaboklab(38.07% -0.0169 -0.1143)
OKLCHoklch(38.07% 0.116 261.6)
XYZxyz(6.1136, 5.3479, 20.7846)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F7F #7F5D1D
analogous
#1D707F #1D3F7F #2C1D7F
triadic
#1D3F7F #7F1D3F #3F7F1D
tetradic
#1D3F7F #7F1D70 #7F5D1D #1D7F2C
square
#1D3F7F #7F1D70 #7F5D1D #1D7F2C
split-complementary
#1D3F7F #7F2C1D #707F1D
monochromatic
#060E1B #12264D #1D3F7F #2858B1 #4275D4

Accessibility & contrast

On white

10.15
#1D3F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1D3F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F7F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F7F#FFFFFF#000000##FFFFFF
##1D3F7F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4681
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1d3f7f;
/* rgb */ color: rgb(29, 63, 127);
/* oklch */ color: oklch(38.1% 0.116 261.6);
Tailwind
colors: {
  custom: {
    50: '#6873a5',
    500: '#1d3f7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f7f;
$custom-light: #6873a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f7f",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 127
  },
  "hsl": {
    "h": 219.184,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38073,
    "c": 0.11557,
    "h": 261.6
  },
  "luminance": 0.05349
}

Semantic roles & 50–950 ramp

primary
#1D3F7F
secondary
#B28D45
accent
#AD42E6
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1D3F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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