#171C5C#171C5C

#171C5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.113 H 272.7°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#171C5C
RGBrgb(23, 28, 92)
HSLhsl(236, 60%, 23%)
HSVhsv(236, 75%, 36%)
CMYKcmyk(75%, 69.6%, 0%, 63.9%)
CIE-LABlab(14.32, 21.88, -38.93)
CIE-LCHlch(14.32, 44.66, 299.34°)
OKLaboklab(27.02% 0.0054 -0.1124)
OKLCHoklch(27.02% 0.113 272.7)
XYZxyz(2.6997, 1.7851, 10.3254)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C5C #5C5717
analogous
#173F5C #171C5C #34175C
triadic
#171C5C #5C171C #1C5C17
tetradic
#171C5C #5C173F #5C5717 #175C34
square
#171C5C #5C173F #5C5717 #175C34
split-complementary
#171C5C #5C3417 #3F5C17
monochromatic
#060718 #0B0D2B #171C5C #232B8D #2F3ABE

Accessibility & contrast

On white

15.48
#171C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171C5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C5C
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C5C#FFFFFF#000000##FFFFFF
##171C5C1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171c5c;
/* rgb */ color: rgb(23, 28, 92);
/* oklch */ color: oklch(27.0% 0.113 272.7);
Tailwind
colors: {
  custom: {
    50: '#5f588b',
    500: '#171c5c',
    950: '#000000',
  },
}
SCSS
$custom: #171c5c;
$custom-light: #5f588b;
$custom-dark: #000000;
JSON
{
  "hex": "#171c5c",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 92
  },
  "hsl": {
    "h": 235.652,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27021,
    "c": 0.11258,
    "h": 272.7
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#171C5C
secondary
#938D3C
accent
#D845E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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