#171C57#171C57

#171C57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.105 H 273.1°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#171C57
RGBrgb(23, 28, 87)
HSLhsl(235, 58%, 22%)
HSVhsv(235, 74%, 34%)
CMYKcmyk(73.6%, 67.8%, 0%, 65.9%)
CIE-LABlab(13.83, 19.89, -36.37)
CIE-LCHlch(13.83, 41.45, 298.67°)
OKLaboklab(26.51% 0.0057 -0.1049)
OKLCHoklch(26.51% 0.105 273.1)
XYZxyz(2.4883, 1.7006, 9.2121)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C57 #575217
analogous
#173C57 #171C57 #321757
triadic
#171C57 #57171C #1C5717
tetradic
#171C57 #57173C #575217 #175732
square
#171C57 #57173C #575217 #175732
split-complementary
#171C57 #573217 #3C5717
monochromatic
#060818 #0A0C27 #171C57 #242C87 #313BB8

Accessibility & contrast

On white

15.67
#171C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C57
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C57#FFFFFF#000000##FFFFFF
##171C571.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c57;
/* rgb */ color: rgb(23, 28, 87);
/* oklch */ color: oklch(26.5% 0.105 273.1);
Tailwind
colors: {
  custom: {
    50: '#5e5887',
    500: '#171c57',
    950: '#000000',
  },
}
SCSS
$custom: #171c57;
$custom-light: #5e5887;
$custom-dark: #000000;
JSON
{
  "hex": "#171c57",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 235.313,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26514,
    "c": 0.10508,
    "h": 273.1
  },
  "luminance": 0.01701
}

Semantic roles & 50–950 ramp

primary
#171C57
secondary
#8E883C
accent
#D546E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171C57

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

Preview Lab → · Contrast checker → · Palette generator →

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