#1D4D98#1D4D98

#1D4D98 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.2% C 0.134 H 259.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#1D4D98
RGBrgb(29, 77, 152)
HSLhsl(217, 68%, 35%)
HSVhsv(217, 81%, 60%)
CMYKcmyk(80.9%, 49.3%, 0%, 40.4%)
CIE-LABlab(33.64, 12.47, -45.63)
CIE-LCHlch(33.64, 47.30, 285.28°)
OKLaboklab(43.18% -0.0248 -0.1312)
OKLCHoklch(43.18% 0.134 259.3)
XYZxyz(8.8260, 7.8349, 30.7468)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4D98 #98681D
analogous
#1D8B98 #1D4D98 #2A1D98
triadic
#1D4D98 #981D4D #4D981D
tetradic
#1D4D98 #981D8B #98681D #1D982A
square
#1D4D98 #981D8B #98681D #1D982A
split-complementary
#1D4D98 #982A1D #8B981D
monochromatic
#091931 #133365 #1D4D98 #2767CB #5288DE

Accessibility & contrast

On white

8.18
#1D4D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1D4D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4D98
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4D98#FFFFFF#000000##FFFFFF
##1D4D981.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559B
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1d4d98;
/* rgb */ color: rgb(29, 77, 152);
/* oklch */ color: oklch(43.2% 0.134 259.3);
Tailwind
colors: {
  custom: {
    50: '#6e7eb7',
    500: '#1d4d98',
    950: '#000000',
  },
}
SCSS
$custom: #1d4d98;
$custom-light: #6e7eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4d98",
  "rgb": {
    "r": 29,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 216.585,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.13352,
    "h": 259.3
  },
  "luminance": 0.07836
}

Semantic roles & 50–950 ramp

primary
#1D4D98
secondary
#C19550
accent
#A73DEB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1D4D98

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

Preview Lab → · Contrast checker → · Palette generator →

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