#1D4F9E#1D4F9E

#1D4F9E is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.139 H 259.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#1D4F9E
RGBrgb(29, 79, 158)
HSLhsl(217, 69%, 37%)
HSVhsv(217, 82%, 62%)
CMYKcmyk(81.6%, 50%, 0%, 38%)
CIE-LABlab(34.64, 13.53, -47.63)
CIE-LCHlch(34.64, 49.52, 285.85°)
OKLaboklab(44.09% -0.0255 -0.137)
OKLCHoklch(44.09% 0.139 259.5)
XYZxyz(9.4720, 8.3207, 33.4480)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4F9E #9E6C1D
analogous
#1D909E #1D4F9E #2B1D9E
triadic
#1D4F9E #9E1D4F #4F9E1D
tetradic
#1D4F9E #9E1D90 #9E6C1D #1D9E2B
square
#1D4F9E #9E1D90 #9E6C1D #1D9E2B
split-complementary
#1D4F9E #9E2B1D #909E1D
monochromatic
#0A1B37 #14356A #1D4F9E #2669D2 #568BE0

Accessibility & contrast

On white

7.88
#1D4F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D4F9E
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4F9E#FFFFFF#000000##FFFFFF
##1D4F9E1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2058A1
Deuteranopia (green-blind)
#004C9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1d4f9e;
/* rgb */ color: rgb(29, 79, 158);
/* oklch */ color: oklch(44.1% 0.139 259.5);
Tailwind
colors: {
  custom: {
    50: '#6f7fbb',
    500: '#1d4f9e',
    950: '#000000',
  },
}
SCSS
$custom: #1d4f9e;
$custom-light: #6f7fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4f9e",
  "rgb": {
    "r": 29,
    "g": 79,
    "b": 158
  },
  "hsl": {
    "h": 216.744,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44089,
    "c": 0.13938,
    "h": 259.5
  },
  "luminance": 0.08322
}

Semantic roles & 50–950 ramp

primary
#1D4F9E
secondary
#C39854
accent
#A83CEC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1D4F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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