#1D4C97#1D4C97

#1D4C97 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 42.9% C 0.133 H 259.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#1D4C97
RGBrgb(29, 76, 151)
HSLhsl(217, 68%, 35%)
HSVhsv(217, 81%, 59%)
CMYKcmyk(80.8%, 49.7%, 0%, 40.8%)
CIE-LABlab(33.27, 12.74, -45.61)
CIE-LCHlch(33.27, 47.36, 285.61°)
OKLaboklab(42.88% -0.0242 -0.1312)
OKLCHoklch(42.88% 0.133 259.6)
XYZxyz(8.6750, 7.6634, 30.2941)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4C97 #97681D
analogous
#1D8997 #1D4C97 #2B1D97
triadic
#1D4C97 #971D4C #4C971D
tetradic
#1D4C97 #971D89 #97681D #1D972B
square
#1D4C97 #971D89 #97681D #1D972B
split-complementary
#1D4C97 #972B1D #89971D
monochromatic
#091830 #133264 #1D4C97 #2766CA #5187DE

Accessibility & contrast

On white

8.29
#1D4C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1D4C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4C97
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4C97#FFFFFF#000000##FFFFFF
##1D4C971.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20549A
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1d4c97;
/* rgb */ color: rgb(29, 76, 151);
/* oklch */ color: oklch(42.9% 0.133 259.6);
Tailwind
colors: {
  custom: {
    50: '#6d7db6',
    500: '#1d4c97',
    950: '#000000',
  },
}
SCSS
$custom: #1d4c97;
$custom-light: #6d7db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4c97",
  "rgb": {
    "r": 29,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 216.885,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42882,
    "c": 0.13337,
    "h": 259.6
  },
  "luminance": 0.07664
}

Semantic roles & 50–950 ramp

primary
#1D4C97
secondary
#C0954F
accent
#A83DEB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1D4C97

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

Preview Lab → · Contrast checker → · Palette generator →

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