#171959#171959

#171959 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.112 H 274.1°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#171959
RGBrgb(23, 25, 89)
HSLhsl(238, 59%, 22%)
HSVhsv(238, 74%, 35%)
CMYKcmyk(74.2%, 71.9%, 0%, 65.1%)
CIE-LABlab(13.22, 22.82, -38.71)
CIE-LCHlch(13.22, 44.94, 300.51°)
OKLaboklab(26.13% 0.008 -0.1118)
OKLCHoklch(26.13% 0.112 274.1)
XYZxyz(2.5036, 1.5985, 9.6259)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171959 #595717
analogous
#173A59 #171959 #361759
triadic
#171959 #591719 #195917
tetradic
#171959 #59173A #595717 #175936
square
#171959 #59173A #595717 #175936
split-complementary
#171959 #593617 #3A5917
monochromatic
#060718 #0A0B28 #171959 #24278A #3034BA

Accessibility & contrast

On white

15.91
#171959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171959
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171959#FFFFFF#000000##FFFFFF
##1719591.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#001F58
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171959;
/* rgb */ color: rgb(23, 25, 89);
/* oklch */ color: oklch(26.1% 0.112 274.1);
Tailwind
colors: {
  custom: {
    50: '#5f5689',
    500: '#171959',
    950: '#000000',
  },
}
SCSS
$custom: #171959;
$custom-light: #5f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#171959",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 238.182,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2613,
    "c": 0.11211,
    "h": 274.1
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#171959
secondary
#908D3C
accent
#DD46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171959

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

Preview Lab → · Contrast checker → · Palette generator →

#171959 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva