#1D177D#1D177D

#1D177D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.161 H 273.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#1D177D
RGBrgb(29, 23, 125)
HSLhsl(244, 69%, 29%)
HSVhsv(244, 82%, 49%)
CMYKcmyk(76.8%, 81.6%, 0%, 51%)
CIE-LABlab(17.25, 37.76, -55.63)
CIE-LCHlch(17.25, 67.24, 304.17°)
OKLaboklab(30.31% 0.0102 -0.1609)
OKLCHoklch(30.31% 0.161 273.6)
XYZxyz(4.5135, 2.3542, 19.6146)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D177D #777D17
analogous
#17447D #1D177D #50177D
triadic
#1D177D #7D1D17 #177D1D
tetradic
#1D177D #7D1744 #777D17 #177D50
square
#1D177D #7D1744 #777D17 #177D50
split-complementary
#1D177D #7D5017 #447D17
monochromatic
#06051A #110D49 #1D177D #2921B1 #3E35DA

Accessibility & contrast

On white

14.28
#1D177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1D177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D177D
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D177D#FFFFFF#000000##FFFFFF
##1D177D1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d177d;
/* rgb */ color: rgb(29, 23, 125);
/* oklch */ color: oklch(30.3% 0.161 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b57a4',
    500: '#1d177d',
    950: '#000000',
  },
}
SCSS
$custom: #1d177d;
$custom-light: #6b57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d177d",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 243.529,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3031,
    "c": 0.16127,
    "h": 273.6
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#1D177D
secondary
#ABB23E
accent
#EC3CE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D177D

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

Preview Lab → · Contrast checker → · Palette generator →

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