#171C5B#171C5B

#171C5B is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.111 H 272.8°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#171C5B
RGBrgb(23, 28, 91)
HSLhsl(236, 60%, 22%)
HSVhsv(236, 75%, 36%)
CMYKcmyk(74.7%, 69.2%, 0%, 64.3%)
CIE-LABlab(14.22, 21.49, -38.43)
CIE-LCHlch(14.22, 44.02, 299.21°)
OKLaboklab(26.92% 0.0054 -0.111)
OKLCHoklch(26.92% 0.111 272.8)
XYZxyz(2.6563, 1.7677, 10.0967)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C5B #5B5617
analogous
#173E5B #171C5B #34175B
triadic
#171C5B #5B171C #1C5B17
tetradic
#171C5B #5B173E #5B5617 #175B34
square
#171C5B #5B173E #5B5617 #175B34
split-complementary
#171C5B #5B3417 #3E5B17
monochromatic
#060818 #0B0D2A #171C5B #232B8C #303ABD

Accessibility & contrast

On white

15.51
#171C5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#171C5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C5B
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C5B#FFFFFF#000000##FFFFFF
##171C5B1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171c5b;
/* rgb */ color: rgb(23, 28, 91);
/* oklch */ color: oklch(26.9% 0.111 272.8);
Tailwind
colors: {
  custom: {
    50: '#5f588a',
    500: '#171c5b',
    950: '#000000',
  },
}
SCSS
$custom: #171c5b;
$custom-light: #5f588a;
$custom-dark: #000000;
JSON
{
  "hex": "#171c5b",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 91
  },
  "hsl": {
    "h": 235.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26919,
    "c": 0.11109,
    "h": 272.8
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#171C5B
secondary
#928C3C
accent
#D745E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171C5B

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

Preview Lab → · Contrast checker → · Palette generator →

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