#1D4794#1D4794

#1D4794 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.5% C 0.135 H 261.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1D4794
RGBrgb(29, 71, 148)
HSLhsl(219, 67%, 35%)
HSVhsv(219, 80%, 58%)
CMYKcmyk(80.4%, 52%, 0%, 42%)
CIE-LABlab(31.59, 14.93, -46.51)
CIE-LCHlch(31.59, 48.84, 287.80°)
OKLaboklab(41.53% -0.0206 -0.1339)
OKLCHoklch(41.53% 0.135 261.2)
XYZxyz(8.1033, 6.9049, 28.9169)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4794 #946A1D
analogous
#1D8294 #1D4794 #2F1D94
triadic
#1D4794 #941D47 #47941D
tetradic
#1D4794 #941D82 #946A1D #1D942F
square
#1D4794 #941D82 #946A1D #1D942F
split-complementary
#1D4794 #942F1D #82941D
monochromatic
#09162E #132E61 #1D4794 #2760C7 #4F81DC

Accessibility & contrast

On white

8.82
#1D4794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1D4794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4794
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4794#FFFFFF#000000##FFFFFF
##1D47941.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155097
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1d4794;
/* rgb */ color: rgb(29, 71, 148);
/* oklch */ color: oklch(41.5% 0.135 261.2);
Tailwind
colors: {
  custom: {
    50: '#6d79b4',
    500: '#1d4794',
    950: '#000000',
  },
}
SCSS
$custom: #1d4794;
$custom-light: #6d79b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4794",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 148
  },
  "hsl": {
    "h": 218.824,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41526,
    "c": 0.13547,
    "h": 261.2
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#1D4794
secondary
#BF974E
accent
#AD3EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1D4794

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

Preview Lab → · Contrast checker → · Palette generator →

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