#171A5A#171A5A

#171A5A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.112 H 273.6°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#171A5A
RGBrgb(23, 26, 90)
HSLhsl(237, 59%, 22%)
HSVhsv(237, 74%, 35%)
CMYKcmyk(74.4%, 71.1%, 0%, 64.7%)
CIE-LABlab(13.58, 22.51, -38.79)
CIE-LCHlch(13.58, 44.85, 300.12°)
OKLaboklab(26.43% 0.0071 -0.112)
OKLCHoklch(26.43% 0.112 273.6)
XYZxyz(2.5676, 1.6589, 9.8558)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A5A #5A5717
analogous
#173C5A #171A5A #35175A
triadic
#171A5A #5A171A #1A5A17
tetradic
#171A5A #5A173C #5A5717 #175A35
square
#171A5A #5A173C #5A5717 #175A35
split-complementary
#171A5A #5A3517 #3C5A17
monochromatic
#060718 #0B0C29 #171A5A #23288B #3036BB

Accessibility & contrast

On white

15.77
#171A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171A5A
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A5A#FFFFFF#000000##FFFFFF
##171A5A1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002B37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171a5a;
/* rgb */ color: rgb(23, 26, 90);
/* oklch */ color: oklch(26.4% 0.112 273.6);
Tailwind
colors: {
  custom: {
    50: '#5f5689',
    500: '#171a5a',
    950: '#000000',
  },
}
SCSS
$custom: #171a5a;
$custom-light: #5f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#171a5a",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 237.313,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26426,
    "c": 0.11227,
    "h": 273.6
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#171A5A
secondary
#918D3C
accent
#DB45E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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