#171C72#171C72

#171C72 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.144 H 271.1°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#171C72
RGBrgb(23, 28, 114)
HSLhsl(237, 66%, 27%)
HSVhsv(237, 80%, 45%)
CMYKcmyk(79.8%, 75.4%, 0%, 55.3%)
CIE-LABlab(16.64, 30.36, -49.59)
CIE-LCHlch(16.64, 58.15, 301.48°)
OKLaboklab(29.4% 0.0026 -0.1436)
OKLCHoklch(29.4% 0.144 271.1)
XYZxyz(3.8048, 2.2272, 16.1457)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C72 #726D17
analogous
#174A72 #171C72 #401772
triadic
#171C72 #72171C #1C7217
tetradic
#171C72 #72174A #726D17 #177240
square
#171C72 #72174A #726D17 #177240
split-complementary
#171C72 #724017 #4A7217
monochromatic
#050619 #0D0F3F #171C72 #2129A5 #2E38D5

Accessibility & contrast

On white

14.53
#171C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C72
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C72#FFFFFF#000000##FFFFFF
##171C721.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c72;
/* rgb */ color: rgb(23, 28, 114);
/* oklch */ color: oklch(29.4% 0.144 271.1);
Tailwind
colors: {
  custom: {
    50: '#65599c',
    500: '#171c72',
    950: '#000000',
  },
}
SCSS
$custom: #171c72;
$custom-light: #65599c;
$custom-dark: #000000;
JSON
{
  "hex": "#171c72",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 236.703,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29402,
    "c": 0.14359,
    "h": 271.1
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#171C72
secondary
#A8A23D
accent
#E03EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171C72

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

Preview Lab → · Contrast checker → · Palette generator →

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