#171C53#171C53

#171C53 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.099 H 273.4°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#171C53
RGBrgb(23, 28, 83)
HSLhsl(235, 57%, 21%)
HSVhsv(235, 72%, 33%)
CMYKcmyk(72.3%, 66.3%, 0%, 67.5%)
CIE-LABlab(13.45, 18.28, -34.27)
CIE-LCHlch(13.45, 38.84, 298.07°)
OKLaboklab(26.12% 0.0059 -0.0988)
OKLCHoklch(26.12% 0.099 273.4)
XYZxyz(2.3294, 1.6370, 8.3751)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C53 #534E17
analogous
#173A53 #171C53 #301753
triadic
#171C53 #53171C #1C5317
tetradic
#171C53 #53173A #534E17 #175330
square
#171C53 #53173A #534E17 #175330
split-complementary
#171C53 #533017 #3A5317
monochromatic
#070818 #0A0C23 #171C53 #242C83 #323CB3

Accessibility & contrast

On white

15.82
#171C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C53
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C53#FFFFFF#000000##FFFFFF
##171C531.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002052
Tritanopia (blue-blind)
#002A34
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171c53;
/* rgb */ color: rgb(23, 28, 83);
/* oklch */ color: oklch(26.1% 0.099 273.4);
Tailwind
colors: {
  custom: {
    50: '#5d5884',
    500: '#171c53',
    950: '#000000',
  },
}
SCSS
$custom: #171c53;
$custom-light: #5d5884;
$custom-dark: #000000;
JSON
{
  "hex": "#171c53",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 83
  },
  "hsl": {
    "h": 235,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.2612,
    "c": 0.09895,
    "h": 273.4
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#171C53
secondary
#8A843C
accent
#D348E0
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171C53

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

Preview Lab → · Contrast checker → · Palette generator →

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