#1D4178#1D4178

#1D4178 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.0% C 0.103 H 258.8°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#1D4178
RGBrgb(29, 65, 120)
HSLhsl(216, 61%, 29%)
HSVhsv(216, 76%, 47%)
CMYKcmyk(75.8%, 45.8%, 0%, 52.9%)
CIE-LABlab(27.84, 7.73, -35.20)
CIE-LCHlch(27.84, 36.04, 282.39°)
OKLaboklab(38.02% -0.02 -0.1007)
OKLCHoklch(38.02% 0.103 258.8)
XYZxyz(5.7859, 5.3972, 18.5025)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D4178 #78541D
analogous
#1D6F78 #1D4178 #271D78
triadic
#1D4178 #781D41 #41781D
tetradic
#1D4178 #781D6F #78541D #1D7827
square
#1D4178 #781D6F #78541D #1D7827
split-complementary
#1D4178 #78271D #6F781D
monochromatic
#060D19 #112647 #1D4178 #295CA9 #3F78D1

Accessibility & contrast

On white

10.10
#1D4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1D4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D4178
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D4178#FFFFFF#000000##FFFFFF
##1D41781.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26467A
Deuteranopia (green-blind)
#143E77
Tritanopia (blue-blind)
#004E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1d4178;
/* rgb */ color: rgb(29, 65, 120);
/* oklch */ color: oklch(38.0% 0.103 258.8);
Tailwind
colors: {
  custom: {
    50: '#66759f',
    500: '#1d4178',
    950: '#000000',
  },
}
SCSS
$custom: #1d4178;
$custom-light: #66759f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d4178",
  "rgb": {
    "r": 29,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 216.264,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38022,
    "c": 0.1027,
    "h": 258.8
  },
  "luminance": 0.05398
}

Semantic roles & 50–950 ramp

primary
#1D4178
secondary
#AC8345
accent
#A544E4
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #1D4178

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

Preview Lab → · Contrast checker → · Palette generator →

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