#171C56#171C56

#171C56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.104 H 273.2°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#171C56
RGBrgb(23, 28, 86)
HSLhsl(235, 58%, 21%)
HSVhsv(235, 73%, 34%)
CMYKcmyk(73.3%, 67.4%, 0%, 66.3%)
CIE-LABlab(13.73, 19.49, -35.85)
CIE-LCHlch(13.73, 40.80, 298.53°)
OKLaboklab(26.42% 0.0058 -0.1034)
OKLCHoklch(26.42% 0.104 273.2)
XYZxyz(2.4478, 1.6843, 8.9984)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C56 #565117
analogous
#173C56 #171C56 #321756
triadic
#171C56 #56171C #1C5617
tetradic
#171C56 #56173C #565117 #175632
square
#171C56 #56173C #565117 #175632
split-complementary
#171C56 #563217 #3C5617
monochromatic
#060818 #0A0C26 #171C56 #242C86 #313BB7

Accessibility & contrast

On white

15.71
#171C56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171C56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C56
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C56#FFFFFF#000000##FFFFFF
##171C561.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171c56;
/* rgb */ color: rgb(23, 28, 86);
/* oklch */ color: oklch(26.4% 0.104 273.2);
Tailwind
colors: {
  custom: {
    50: '#5e5886',
    500: '#171c56',
    950: '#000000',
  },
}
SCSS
$custom: #171c56;
$custom-light: #5e5886;
$custom-dark: #000000;
JSON
{
  "hex": "#171c56",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 86
  },
  "hsl": {
    "h": 235.238,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26415,
    "c": 0.10356,
    "h": 273.2
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#171C56
secondary
#8D873C
accent
#D547E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171C56

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

Preview Lab → · Contrast checker → · Palette generator →

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