#1D178E#1D178E

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

Color values

HEX#1D178E
RGBrgb(29, 23, 142)
HSLhsl(243, 72%, 32%)
HSVhsv(243, 84%, 56%)
CMYKcmyk(79.6%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.33, 43.34, -62.89)
CIE-LCHlch(19.33, 76.37, 304.57°)
OKLaboklab(32.37% 0.0059 -0.182)
OKLCHoklch(32.37% 0.182 271.9)
XYZxyz(5.6939, 2.8264, 25.8314)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D178E #888E17
analogous
#174D8E #1D178E #58178E
triadic
#1D178E #8E1D17 #178E1D
tetradic
#1D178E #8E174D #888E17 #178E58
square
#1D178E #8E174D #888E17 #178E58
split-complementary
#1D178E #8E5817 #4D8E17
monochromatic
#070625 #120E59 #1D178E #2820C3 #483FE0

Accessibility & contrast

On white

13.42
#1D178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D178E
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D178E#FFFFFF#000000##FFFFFF
##1D178E1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d178e;
/* rgb */ color: rgb(29, 23, 142);
/* oklch */ color: oklch(32.4% 0.182 271.9);
Tailwind
colors: {
  custom: {
    50: '#6f58b0',
    500: '#1d178e',
    950: '#000000',
  },
}
SCSS
$custom: #1d178e;
$custom-light: #6f58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d178e",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 243.025,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32368,
    "c": 0.18208,
    "h": 271.9
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D178E

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

Preview Lab → · Contrast checker → · Palette generator →

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