#1D4C8E#1D4C8E

#1D4C8E is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.2% C 0.121 H 257.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#1D4C8E
RGBrgb(29, 76, 142)
HSLhsl(215, 66%, 34%)
HSVhsv(215, 80%, 56%)
CMYKcmyk(79.6%, 46.5%, 0%, 44.3%)
CIE-LABlab(32.66, 9.12, -41.11)
CIE-LCHlch(32.66, 42.11, 282.50°)
OKLaboklab(42.22% -0.0257 -0.1179)
OKLCHoklch(42.22% 0.121 257.7)
XYZxyz(7.9718, 7.3822, 26.5907)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4C8E #8E5F1D
analogous
#1D848E #1D4C8E #261D8E
triadic
#1D4C8E #8E1D4C #4C8E1D
tetradic
#1D4C8E #8E1D84 #8E5F1D #1D8E26
square
#1D4C8E #8E1D84 #8E5F1D #1D8E26
split-complementary
#1D4C8E #8E261D #848E1D
monochromatic
#081628 #13315B #1D4C8E #2767C1 #4B87DA

Accessibility & contrast

On white

8.48
#1D4C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#1D4C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4C8E
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4C8E#FFFFFF#000000##FFFFFF
##1D4C8E1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295291
Deuteranopia (green-blind)
#10488D
Tritanopia (blue-blind)
#005C66
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1d4c8e;
/* rgb */ color: rgb(29, 76, 142);
/* oklch */ color: oklch(42.2% 0.121 257.7);
Tailwind
colors: {
  custom: {
    50: '#6b7daf',
    500: '#1d4c8e',
    950: '#000000',
  },
}
SCSS
$custom: #1d4c8e;
$custom-light: #6b7daf;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4c8e",
  "rgb": {
    "r": 29,
    "g": 76,
    "b": 142
  },
  "hsl": {
    "h": 215.044,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42216,
    "c": 0.12069,
    "h": 257.7
  },
  "luminance": 0.07383
}

Semantic roles & 50–950 ramp

primary
#1D4C8E
secondary
#BD8D4A
accent
#A23FE9
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1D4C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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