#1D4796#1D4796

#1D4796 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.138 H 261.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#1D4796
RGBrgb(29, 71, 150)
HSLhsl(219, 68%, 35%)
HSVhsv(219, 81%, 59%)
CMYKcmyk(80.7%, 52.7%, 0%, 41.2%)
CIE-LABlab(31.74, 15.74, -47.49)
CIE-LCHlch(31.74, 50.03, 288.34°)
OKLaboklab(41.68% -0.0203 -0.1368)
OKLCHoklch(41.68% 0.138 261.5)
XYZxyz(8.2630, 6.9687, 29.7579)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4796 #966C1D
analogous
#1D8396 #1D4796 #301D96
triadic
#1D4796 #961D47 #47961D
tetradic
#1D4796 #961D83 #966C1D #1D9630
square
#1D4796 #961D83 #966C1D #1D9630
split-complementary
#1D4796 #96301D #83961D
monochromatic
#09162F #132F63 #1D4796 #275FC9 #5081DD

Accessibility & contrast

On white

8.77
#1D4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1D4796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4796
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4796#FFFFFF#000000##FFFFFF
##1D47961.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115099
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1d4796;
/* rgb */ color: rgb(29, 71, 150);
/* oklch */ color: oklch(41.7% 0.138 261.5);
Tailwind
colors: {
  custom: {
    50: '#6d79b5',
    500: '#1d4796',
    950: '#000000',
  },
}
SCSS
$custom: #1d4796;
$custom-light: #6d79b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4796",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 219.174,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41684,
    "c": 0.13829,
    "h": 261.5
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#1D4796
secondary
#C0994F
accent
#AE3DEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1D4796

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

Preview Lab → · Contrast checker → · Palette generator →

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