#1D4789#1D4789

#1D4789 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.7% C 0.120 H 259.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#1D4789
RGBrgb(29, 71, 137)
HSLhsl(217, 65%, 33%)
HSVhsv(217, 79%, 54%)
CMYKcmyk(78.8%, 48.2%, 0%, 46.3%)
CIE-LABlab(30.81, 10.49, -41.01)
CIE-LCHlch(30.81, 42.33, 284.35°)
OKLaboklab(40.68% -0.0223 -0.1177)
OKLCHoklch(40.68% 0.12 259.3)
XYZxyz(7.2736, 6.5730, 24.5474)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4789 #895F1D
analogous
#1D7D89 #1D4789 #291D89
triadic
#1D4789 #891D47 #47891D
tetradic
#1D4789 #891D7D #895F1D #1D8929
square
#1D4789 #891D7D #895F1D #1D8929
split-complementary
#1D4789 #89291D #7D891D
monochromatic
#081324 #122D56 #1D4789 #2861BC #4880D8

Accessibility & contrast

On white

9.07
#1D4789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1D4789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4789
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4789#FFFFFF#000000##FFFFFF
##1D47891.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8B
Deuteranopia (green-blind)
#064488
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1d4789;
/* rgb */ color: rgb(29, 71, 137);
/* oklch */ color: oklch(40.7% 0.120 259.3);
Tailwind
colors: {
  custom: {
    50: '#6a79ac',
    500: '#1d4789',
    950: '#000000',
  },
}
SCSS
$custom: #1d4789;
$custom-light: #6a79ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4789",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 216.667,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.40684,
    "c": 0.11981,
    "h": 259.3
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#1D4789
secondary
#BA8E47
accent
#A740E8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1D4789

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

Preview Lab → · Contrast checker → · Palette generator →

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