#1D4C98#1D4C98

#1D4C98 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.135 H 259.7°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1D4C98
RGBrgb(29, 76, 152)
HSLhsl(217, 68%, 35%)
HSVhsv(217, 81%, 60%)
CMYKcmyk(80.9%, 50%, 0%, 40.4%)
CIE-LABlab(33.34, 13.14, -46.11)
CIE-LCHlch(33.34, 47.94, 285.91°)
OKLaboklab(42.96% -0.024 -0.1326)
OKLCHoklch(42.96% 0.135 259.7)
XYZxyz(8.7566, 7.6961, 30.7237)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4C98 #98691D
analogous
#1D8998 #1D4C98 #2B1D98
triadic
#1D4C98 #981D4C #4C981D
tetradic
#1D4C98 #981D89 #98691D #1D982B
square
#1D4C98 #981D89 #98691D #1D982B
split-complementary
#1D4C98 #982B1D #89981D
monochromatic
#091931 #133265 #1D4C98 #2766CB #5287DE

Accessibility & contrast

On white

8.27
#1D4C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1D4C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4C98
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4C98#FFFFFF#000000##FFFFFF
##1D4C981.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d4c98;
/* rgb */ color: rgb(29, 76, 152);
/* oklch */ color: oklch(43.0% 0.135 259.7);
Tailwind
colors: {
  custom: {
    50: '#6e7db7',
    500: '#1d4c98',
    950: '#000000',
  },
}
SCSS
$custom: #1d4c98;
$custom-light: #6e7db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4c98",
  "rgb": {
    "r": 29,
    "g": 76,
    "b": 152
  },
  "hsl": {
    "h": 217.073,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42958,
    "c": 0.13478,
    "h": 259.7
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D4C98

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

Preview Lab → · Contrast checker → · Palette generator →

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