#171B5B#171B5B

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

Color values

HEX#171B5B
RGBrgb(23, 27, 91)
HSLhsl(236, 60%, 22%)
HSVhsv(236, 75%, 36%)
CMYKcmyk(74.7%, 70.3%, 0%, 64.3%)
CIE-LABlab(13.95, 22.20, -38.86)
CIE-LCHlch(13.95, 44.76, 299.73°)
OKLaboklab(26.72% 0.0062 -0.1122)
OKLCHoklch(26.72% 0.112 273.2)
XYZxyz(2.6330, 1.7211, 10.0889)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B5B #5B5717
analogous
#173D5B #171B5B #35175B
triadic
#171B5B #5B171B #1B5B17
tetradic
#171B5B #5B173D #5B5717 #175B35
square
#171B5B #5B173D #5B5717 #175B35
split-complementary
#171B5B #5B3517 #3D5B17
monochromatic
#060718 #0B0D2A #171B5B #23298C #3038BD

Accessibility & contrast

On white

15.62
#171B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B5B
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B5B#FFFFFF#000000##FFFFFF
##171B5B1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171b5b;
/* rgb */ color: rgb(23, 27, 91);
/* oklch */ color: oklch(26.7% 0.112 273.2);
Tailwind
colors: {
  custom: {
    50: '#5f578a',
    500: '#171b5b',
    950: '#000000',
  },
}
SCSS
$custom: #171b5b;
$custom-light: #5f578a;
$custom-dark: #000000;
JSON
{
  "hex": "#171b5b",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 236.471,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26723,
    "c": 0.11242,
    "h": 273.2
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#171B5B
secondary
#928D3C
accent
#DA45E3
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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