#1D407F#1D407F

#1D407F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.3% C 0.114 H 261.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1D407F
RGBrgb(29, 64, 127)
HSLhsl(219, 63%, 31%)
HSVhsv(219, 77%, 50%)
CMYKcmyk(77.2%, 49.6%, 0%, 50.2%)
CIE-LABlab(28.01, 11.26, -39.32)
CIE-LCHlch(28.01, 40.90, 285.98°)
OKLaboklab(38.3% -0.0178 -0.1129)
OKLCHoklch(38.3% 0.114 261.1)
XYZxyz(6.1695, 5.4596, 20.8032)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D407F #7F5C1D
analogous
#1D717F #1D407F #2B1D7F
triadic
#1D407F #7F1D40 #407F1D
tetradic
#1D407F #7F1D71 #7F5C1D #1D7F2B
square
#1D407F #7F1D71 #7F5C1D #1D7F2B
split-complementary
#1D407F #7F2B1D #717F1D
monochromatic
#060E1B #12274D #1D407F #2859B1 #4276D4

Accessibility & contrast

On white

10.04
#1D407F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1D407F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D407F
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D407F#FFFFFF#000000##FFFFFF
##1D407F1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4781
Deuteranopia (green-blind)
#013E7E
Tritanopia (blue-blind)
#004F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d407f;
/* rgb */ color: rgb(29, 64, 127);
/* oklch */ color: oklch(38.3% 0.114 261.1);
Tailwind
colors: {
  custom: {
    50: '#6874a4',
    500: '#1d407f',
    950: '#000000',
  },
}
SCSS
$custom: #1d407f;
$custom-light: #6874a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d407f",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 127
  },
  "hsl": {
    "h": 218.571,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38304,
    "c": 0.11427,
    "h": 261.1
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#1D407F
secondary
#B28B45
accent
#AB42E6
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1D407F

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

Preview Lab → · Contrast checker → · Palette generator →

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