#171D72#171D72

#171D72 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.142 H 270.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#171D72
RGBrgb(23, 29, 114)
HSLhsl(236, 66%, 27%)
HSVhsv(236, 80%, 45%)
CMYKcmyk(79.8%, 74.6%, 0%, 55.3%)
CIE-LABlab(16.87, 29.72, -49.20)
CIE-LCHlch(16.87, 57.48, 301.13°)
OKLaboklab(29.57% 0.0021 -0.1424)
OKLCHoklch(29.57% 0.142 270.9)
XYZxyz(3.8289, 2.2754, 16.1537)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D72 #726C17
analogous
#174B72 #171D72 #3F1772
triadic
#171D72 #72171D #1D7217
tetradic
#171D72 #72174B #726C17 #17723F
square
#171D72 #72174B #726C17 #17723F
split-complementary
#171D72 #723F17 #4B7217
monochromatic
#050619 #0D103F #171D72 #212AA5 #2E39D5

Accessibility & contrast

On white

14.43
#171D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D72
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D72#FFFFFF#000000##FFFFFF
##171D721.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171d72;
/* rgb */ color: rgb(23, 29, 114);
/* oklch */ color: oklch(29.6% 0.142 270.9);
Tailwind
colors: {
  custom: {
    50: '#65599c',
    500: '#171d72',
    950: '#000000',
  },
}
SCSS
$custom: #171d72;
$custom-light: #65599c;
$custom-dark: #000000;
JSON
{
  "hex": "#171d72",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 114
  },
  "hsl": {
    "h": 236.044,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29569,
    "c": 0.14247,
    "h": 270.9
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#171D72
secondary
#A8A13D
accent
#DE3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171D72

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

Preview Lab → · Contrast checker → · Palette generator →

#171D72 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva