#1D4797#1D4797

#1D4797 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.140 H 261.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#1D4797
RGBrgb(29, 71, 151)
HSLhsl(219, 68%, 35%)
HSVhsv(219, 81%, 59%)
CMYKcmyk(80.8%, 53%, 0%, 40.8%)
CIE-LABlab(31.81, 16.14, -47.98)
CIE-LCHlch(31.81, 50.62, 288.60°)
OKLaboklab(41.76% -0.0202 -0.1382)
OKLCHoklch(41.76% 0.14 261.7)
XYZxyz(8.3438, 7.0011, 30.1837)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4797 #976D1D
analogous
#1D8497 #1D4797 #301D97
triadic
#1D4797 #971D47 #47971D
tetradic
#1D4797 #971D84 #976D1D #1D9730
square
#1D4797 #971D84 #976D1D #1D9730
split-complementary
#1D4797 #97301D #84971D
monochromatic
#091730 #132F64 #1D4797 #275FCA #5181DE

Accessibility & contrast

On white

8.75
#1D4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1D4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4797
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4797#FFFFFF#000000##FFFFFF
##1D47971.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F519A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1d4797;
/* rgb */ color: rgb(29, 71, 151);
/* oklch */ color: oklch(41.8% 0.140 261.7);
Tailwind
colors: {
  custom: {
    50: '#6e79b6',
    500: '#1d4797',
    950: '#000000',
  },
}
SCSS
$custom: #1d4797;
$custom-light: #6e79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4797",
  "rgb": {
    "r": 29,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 219.344,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41763,
    "c": 0.13969,
    "h": 261.7
  },
  "luminance": 0.07002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D4797

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

Preview Lab → · Contrast checker → · Palette generator →

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