#1D4F9D#1D4F9D

#1D4F9D is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.138 H 259.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#1D4F9D
RGBrgb(29, 79, 157)
HSLhsl(217, 69%, 36%)
HSVhsv(217, 82%, 62%)
CMYKcmyk(81.5%, 49.7%, 0%, 38.4%)
CIE-LABlab(34.57, 13.13, -47.14)
CIE-LCHlch(34.57, 48.94, 285.56°)
OKLaboklab(44.01% -0.0256 -0.1356)
OKLCHoklch(44.01% 0.138 259.3)
XYZxyz(9.3863, 8.2864, 32.9965)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4F9D #9D6B1D
analogous
#1D8F9D #1D4F9D #2B1D9D
triadic
#1D4F9D #9D1D4F #4F9D1D
tetradic
#1D4F9D #9D1D8F #9D6B1D #1D9D2B
square
#1D4F9D #9D1D8F #9D6B1D #1D9D2B
split-complementary
#1D4F9D #9D2B1D #8F9D1D
monochromatic
#0A1B36 #133569 #1D4F9D #2769D1 #558BE0

Accessibility & contrast

On white

7.90
#1D4F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1D4F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4F9D
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4F9D#FFFFFF#000000##FFFFFF
##1D4F9D1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2157A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1d4f9d;
/* rgb */ color: rgb(29, 79, 157);
/* oklch */ color: oklch(44.0% 0.138 259.3);
Tailwind
colors: {
  custom: {
    50: '#6f7fba',
    500: '#1d4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1d4f9d;
$custom-light: #6f7fba;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4f9d",
  "rgb": {
    "r": 29,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 216.563,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44013,
    "c": 0.138,
    "h": 259.3
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

primary
#1D4F9D
secondary
#C39753
accent
#A73CEC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A12
muted
#7B7C81

Preview Lab

Preview with #1D4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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