#1D178D#1D178D

#1D178D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.181 H 271.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#1D178D
RGBrgb(29, 23, 141)
HSLhsl(243, 72%, 32%)
HSVhsv(243, 84%, 55%)
CMYKcmyk(79.4%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.21, 43.02, -62.47)
CIE-LCHlch(19.21, 75.85, 304.55°)
OKLaboklab(32.25% 0.0061 -0.1808)
OKLCHoklch(32.25% 0.181 271.9)
XYZxyz(5.6192, 2.7965, 25.4378)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D178D #878D17
analogous
#174C8D #1D178D #58178D
triadic
#1D178D #8D1D17 #178D1D
tetradic
#1D178D #8D174C #878D17 #178D58
square
#1D178D #8D174C #878D17 #178D58
split-complementary
#1D178D #8D5817 #4C8D17
monochromatic
#070624 #120E58 #1D178D #2820C2 #473FE0

Accessibility & contrast

On white

13.47
#1D178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D178D
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D178D#FFFFFF#000000##FFFFFF
##1D178D1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d178d;
/* rgb */ color: rgb(29, 23, 141);
/* oklch */ color: oklch(32.2% 0.181 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1d178d',
    950: '#000000',
  },
}
SCSS
$custom: #1d178d;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d178d",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 243.051,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.18088,
    "h": 271.9
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#1D178D
secondary
#B9C040
accent
#EF39E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D178D

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

Preview Lab → · Contrast checker → · Palette generator →

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