#1D178A#1D178A

#1D178A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.177 H 272.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1D178A
RGBrgb(29, 23, 138)
HSLhsl(243, 71%, 32%)
HSVhsv(243, 83%, 54%)
CMYKcmyk(79%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.84, 42.05, -61.22)
CIE-LCHlch(18.84, 74.27, 304.48°)
OKLaboklab(31.88% 0.0069 -0.1771)
OKLCHoklch(31.88% 0.177 272.2)
XYZxyz(5.3990, 2.7084, 24.2781)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D178A #848A17
analogous
#174B8A #1D178A #57178A
triadic
#1D178A #8A1D17 #178A1D
tetradic
#1D178A #8A174B #848A17 #178A57
square
#1D178A #8A174B #848A17 #178A57
split-complementary
#1D178A #8A5717 #4B8A17
monochromatic
#070621 #120E56 #1D178A #2820BE #453DDF

Accessibility & contrast

On white

13.62
#1D178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D178A
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D178A#FFFFFF#000000##FFFFFF
##1D178A1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d178a;
/* rgb */ color: rgb(29, 23, 138);
/* oklch */ color: oklch(31.9% 0.177 272.2);
Tailwind
colors: {
  custom: {
    50: '#6e58ad',
    500: '#1d178a',
    950: '#000000',
  },
}
SCSS
$custom: #1d178a;
$custom-light: #6e58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d178a",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 243.13,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31879,
    "c": 0.17726,
    "h": 272.2
  },
  "luminance": 0.02709
}

Semantic roles & 50–950 ramp

primary
#1D178A
secondary
#B7BE3F
accent
#EE3AE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D178A

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

Preview Lab → · Contrast checker → · Palette generator →

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