#171A57#171A57

#171A57 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.108 H 273.9°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#171A57
RGBrgb(23, 26, 87)
HSLhsl(237, 58%, 22%)
HSVhsv(237, 74%, 34%)
CMYKcmyk(73.6%, 70.1%, 0%, 65.9%)
CIE-LABlab(13.28, 21.33, -37.26)
CIE-LCHlch(13.28, 42.93, 299.78°)
OKLaboklab(26.11% 0.0074 -0.1076)
OKLCHoklch(26.11% 0.108 273.9)
XYZxyz(2.4425, 1.6088, 9.1968)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A57 #575417
analogous
#173A57 #171A57 #341757
triadic
#171A57 #57171A #1A5717
tetradic
#171A57 #57173A #575417 #175734
square
#171A57 #57173A #575417 #175734
split-complementary
#171A57 #573417 #3A5717
monochromatic
#060718 #0A0C27 #171A57 #242887 #3137B8

Accessibility & contrast

On white

15.89
#171A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A57
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A57#FFFFFF#000000##FFFFFF
##171A571.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171a57;
/* rgb */ color: rgb(23, 26, 87);
/* oklch */ color: oklch(26.1% 0.108 273.9);
Tailwind
colors: {
  custom: {
    50: '#5e5687',
    500: '#171a57',
    950: '#000000',
  },
}
SCSS
$custom: #171a57;
$custom-light: #5e5687;
$custom-dark: #000000;
JSON
{
  "hex": "#171a57",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 237.188,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26114,
    "c": 0.10782,
    "h": 273.9
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#171A57
secondary
#8E8A3C
accent
#DA46E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171A57

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

Preview Lab → · Contrast checker → · Palette generator →

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