#171C5A#171C5A

#171C5A is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.110 H 272.9°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#171C5A
RGBrgb(23, 28, 90)
HSLhsl(236, 59%, 22%)
HSVhsv(236, 74%, 35%)
CMYKcmyk(74.4%, 68.9%, 0%, 64.7%)
CIE-LABlab(14.12, 21.09, -37.91)
CIE-LCHlch(14.12, 43.38, 299.08°)
OKLaboklab(26.82% 0.0055 -0.1095)
OKLCHoklch(26.82% 0.11 272.9)
XYZxyz(2.6134, 1.7506, 9.8710)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C5A #5A5517
analogous
#173E5A #171C5A #33175A
triadic
#171C5A #5A171C #1C5A17
tetradic
#171C5A #5A173E #5A5517 #175A33
square
#171C5A #5A173E #5A5517 #175A33
split-complementary
#171C5A #5A3317 #3E5A17
monochromatic
#060818 #0B0D29 #171C5A #232B8B #303ABB

Accessibility & contrast

On white

15.55
#171C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C5A
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C5A#FFFFFF#000000##FFFFFF
##171C5A1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #171c5a;
/* rgb */ color: rgb(23, 28, 90);
/* oklch */ color: oklch(26.8% 0.110 272.9);
Tailwind
colors: {
  custom: {
    50: '#5f5889',
    500: '#171c5a',
    950: '#000000',
  },
}
SCSS
$custom: #171c5a;
$custom-light: #5f5889;
$custom-dark: #000000;
JSON
{
  "hex": "#171c5a",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 235.522,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26817,
    "c": 0.1096,
    "h": 272.9
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#171C5A
secondary
#918B3C
accent
#D745E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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