#171B59#171B59

#171B59 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.109 H 273.4°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#171B59
RGBrgb(23, 27, 89)
HSLhsl(236, 59%, 22%)
HSVhsv(236, 74%, 35%)
CMYKcmyk(74.2%, 69.7%, 0%, 65.1%)
CIE-LABlab(13.75, 21.40, -37.85)
CIE-LCHlch(13.75, 43.48, 299.49°)
OKLaboklab(26.52% 0.0064 -0.1093)
OKLCHoklch(26.52% 0.109 273.4)
XYZxyz(2.5479, 1.6871, 9.6406)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B59 #595517
analogous
#173C59 #171B59 #341759
triadic
#171B59 #59171B #1B5917
tetradic
#171B59 #59173C #595517 #175934
square
#171B59 #59173C #595517 #175934
split-complementary
#171B59 #593417 #3C5917
monochromatic
#060718 #0A0C28 #171B59 #242A8A #3039BA

Accessibility & contrast

On white

15.70
#171B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#171B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B59
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B59#FFFFFF#000000##FFFFFF
##171B591.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b59;
/* rgb */ color: rgb(23, 27, 89);
/* oklch */ color: oklch(26.5% 0.109 273.4);
Tailwind
colors: {
  custom: {
    50: '#5f5789',
    500: '#171b59',
    950: '#000000',
  },
}
SCSS
$custom: #171b59;
$custom-light: #5f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#171b59",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 236.364,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26516,
    "c": 0.10946,
    "h": 273.4
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#171B59
secondary
#908B3C
accent
#D946E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171B59

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

Preview Lab → · Contrast checker → · Palette generator →

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