#1D178F#1D178F

#1D178F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.183 H 271.8°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#1D178F
RGBrgb(29, 23, 143)
HSLhsl(243, 72%, 33%)
HSVhsv(243, 84%, 56%)
CMYKcmyk(79.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.46, 43.66, -63.30)
CIE-LCHlch(19.46, 76.90, 304.59°)
OKLaboklab(32.49% 0.0056 -0.1832)
OKLCHoklch(32.49% 0.183 271.8)
XYZxyz(5.7693, 2.8565, 26.2286)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D178F #898F17
analogous
#174D8F #1D178F #59178F
triadic
#1D178F #8F1D17 #178F1D
tetradic
#1D178F #8F174D #898F17 #178F59
square
#1D178F #8F174D #898F17 #178F59
split-complementary
#1D178F #8F5917 #4D8F17
monochromatic
#080626 #120F5A #1D178F #281FC4 #4840E0

Accessibility & contrast

On white

13.36
#1D178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D178F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D178F#FFFFFF#000000##FFFFFF
##1D178F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d178f;
/* rgb */ color: rgb(29, 23, 143);
/* oklch */ color: oklch(32.5% 0.183 271.8);
Tailwind
colors: {
  custom: {
    50: '#7058b1',
    500: '#1d178f',
    950: '#000000',
  },
}
SCSS
$custom: #1d178f;
$custom-light: #7058b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d178f",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 243,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32491,
    "c": 0.18327,
    "h": 271.8
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#1D178F
secondary
#BAC141
accent
#EF39E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D178F

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

Preview Lab → · Contrast checker → · Palette generator →

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