#1D417F#1D417F

#1D417F is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.113 H 260.5°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#1D417F
RGBrgb(29, 65, 127)
HSLhsl(218, 63%, 31%)
HSVhsv(218, 77%, 50%)
CMYKcmyk(77.2%, 48.8%, 0%, 50.2%)
CIE-LABlab(28.31, 10.57, -38.83)
CIE-LCHlch(28.31, 40.24, 285.23°)
OKLaboklab(38.54% -0.0187 -0.1114)
OKLCHoklch(38.54% 0.113 260.5)
XYZxyz(6.2264, 5.5734, 20.8222)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D417F #7F5B1D
analogous
#1D727F #1D417F #2A1D7F
triadic
#1D417F #7F1D41 #417F1D
tetradic
#1D417F #7F1D72 #7F5B1D #1D7F2A
square
#1D417F #7F1D72 #7F5B1D #1D7F2A
split-complementary
#1D417F #7F2A1D #727F1D
monochromatic
#060E1B #12274D #1D417F #285AB1 #4278D4

Accessibility & contrast

On white

9.93
#1D417F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1D417F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D417F
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D417F#FFFFFF#000000##FFFFFF
##1D417F1.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4881
Deuteranopia (green-blind)
#053F7E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d417f;
/* rgb */ color: rgb(29, 65, 127);
/* oklch */ color: oklch(38.5% 0.113 260.5);
Tailwind
colors: {
  custom: {
    50: '#6875a4',
    500: '#1d417f',
    950: '#000000',
  },
}
SCSS
$custom: #1d417f;
$custom-light: #6875a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d417f",
  "rgb": {
    "r": 29,
    "g": 65,
    "b": 127
  },
  "hsl": {
    "h": 217.959,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38538,
    "c": 0.11298,
    "h": 260.5
  },
  "luminance": 0.05574
}

Semantic roles & 50–950 ramp

primary
#1D417F
secondary
#B28A45
accent
#AA42E6
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1D417F

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

Preview Lab → · Contrast checker → · Palette generator →

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