#1D4F9F#1D4F9F

#1D4F9F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.141 H 259.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#1D4F9F
RGBrgb(29, 79, 159)
HSLhsl(217, 69%, 37%)
HSVhsv(217, 82%, 62%)
CMYKcmyk(81.8%, 50.3%, 0%, 37.6%)
CIE-LABlab(34.71, 13.93, -48.12)
CIE-LCHlch(34.71, 50.10, 286.14°)
OKLaboklab(44.17% -0.0253 -0.1385)
OKLCHoklch(44.17% 0.141 259.6)
XYZxyz(9.5584, 8.3552, 33.9031)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4F9F #9F6D1D
analogous
#1D909F #1D4F9F #2C1D9F
triadic
#1D4F9F #9F1D4F #4F9F1D
tetradic
#1D4F9F #9F1D90 #9F6D1D #1D9F2C
square
#1D4F9F #9F1D90 #9F6D1D #1D9F2C
split-complementary
#1D4F9F #9F2C1D #909F1D
monochromatic
#0A1C37 #14356B #1D4F9F #2669D3 #568BE0

Accessibility & contrast

On white

7.86
#1D4F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1D4F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4F9F
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4F9F#FFFFFF#000000##FFFFFF
##1D4F9F1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E58A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1d4f9f;
/* rgb */ color: rgb(29, 79, 159);
/* oklch */ color: oklch(44.2% 0.141 259.6);
Tailwind
colors: {
  custom: {
    50: '#6f7fbc',
    500: '#1d4f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1d4f9f;
$custom-light: #6f7fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4f9f",
  "rgb": {
    "r": 29,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 216.923,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44165,
    "c": 0.14077,
    "h": 259.6
  },
  "luminance": 0.08356
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D4F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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