#1D178C#1D178C

#1D178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.180 H 272.0°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1D178C
RGBrgb(29, 23, 140)
HSLhsl(243, 72%, 32%)
HSVhsv(243, 84%, 55%)
CMYKcmyk(79.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.08, 42.70, -62.06)
CIE-LCHlch(19.08, 75.32, 304.53°)
OKLaboklab(32.12% 0.0064 -0.1796)
OKLCHoklch(32.12% 0.18 272)
XYZxyz(5.5451, 2.7668, 25.0477)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D178C #868C17
analogous
#174C8C #1D178C #58178C
triadic
#1D178C #8C1D17 #178C1D
tetradic
#1D178C #8C174C #868C17 #178C58
square
#1D178C #8C174C #868C17 #178C58
split-complementary
#1D178C #8C5817 #4C8C17
monochromatic
#070623 #120E57 #1D178C #2820C1 #463EDF

Accessibility & contrast

On white

13.52
#1D178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1D178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D178C
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D178C#FFFFFF#000000##FFFFFF
##1D178C1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d178c;
/* rgb */ color: rgb(29, 23, 140);
/* oklch */ color: oklch(32.1% 0.180 272.0);
Tailwind
colors: {
  custom: {
    50: '#6f58af',
    500: '#1d178c',
    950: '#000000',
  },
}
SCSS
$custom: #1d178c;
$custom-light: #6f58af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d178c",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 243.077,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32123,
    "c": 0.17968,
    "h": 272
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#1D178C
secondary
#B9BF3F
accent
#EF39E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D178C

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

Preview Lab → · Contrast checker → · Palette generator →

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