#171A56#171A56

#171A56 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.106 H 274.1°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#171A56
RGBrgb(23, 26, 86)
HSLhsl(237, 58%, 21%)
HSVhsv(237, 73%, 34%)
CMYKcmyk(73.3%, 69.8%, 0%, 66.3%)
CIE-LABlab(13.19, 20.93, -36.75)
CIE-LCHlch(13.19, 42.29, 299.66°)
OKLaboklab(26.01% 0.0075 -0.106)
OKLCHoklch(26.01% 0.106 274.1)
XYZxyz(2.4019, 1.5926, 8.9831)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171A56 #565317
analogous
#173A56 #171A56 #341756
triadic
#171A56 #56171A #1A5617
tetradic
#171A56 #56173A #565317 #175634
square
#171A56 #56173A #565317 #175634
split-complementary
#171A56 #563417 #3A5617
monochromatic
#060718 #0A0B26 #171A56 #242986 #3137B7

Accessibility & contrast

On white

15.93
#171A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171A56
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171A56#FFFFFF#000000##FFFFFF
##171A561.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171a56;
/* rgb */ color: rgb(23, 26, 86);
/* oklch */ color: oklch(26.0% 0.106 274.1);
Tailwind
colors: {
  custom: {
    50: '#5e5686',
    500: '#171a56',
    950: '#000000',
  },
}
SCSS
$custom: #171a56;
$custom-light: #5e5686;
$custom-dark: #000000;
JSON
{
  "hex": "#171a56",
  "rgb": {
    "r": 23,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 237.143,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26012,
    "c": 0.10632,
    "h": 274.1
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#171A56
secondary
#8D893C
accent
#DA47E1
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171A56

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

Preview Lab → · Contrast checker → · Palette generator →

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