#171B5A#171B5A

#171B5A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.111 H 273.3°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#171B5A
RGBrgb(23, 27, 90)
HSLhsl(236, 59%, 22%)
HSVhsv(236, 74%, 35%)
CMYKcmyk(74.4%, 70%, 0%, 64.7%)
CIE-LABlab(13.85, 21.80, -38.36)
CIE-LCHlch(13.85, 44.12, 299.61°)
OKLaboklab(26.62% 0.0063 -0.1108)
OKLCHoklch(26.62% 0.111 273.3)
XYZxyz(2.5901, 1.7040, 9.8633)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B5A #5A5617
analogous
#173D5A #171B5A #35175A
triadic
#171B5A #5A171B #1B5A17
tetradic
#171B5A #5A173D #5A5617 #175A35
square
#171B5A #5A173D #5A5617 #175A35
split-complementary
#171B5A #5A3517 #3D5A17
monochromatic
#060718 #0B0C29 #171B5A #232A8B #3038BB

Accessibility & contrast

On white

15.66
#171B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B5A
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B5A#FFFFFF#000000##FFFFFF
##171B5A1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.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: #171b5a;
/* rgb */ color: rgb(23, 27, 90);
/* oklch */ color: oklch(26.6% 0.111 273.3);
Tailwind
colors: {
  custom: {
    50: '#5f5789',
    500: '#171b5a',
    950: '#000000',
  },
}
SCSS
$custom: #171b5a;
$custom-light: #5f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#171b5a",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 236.418,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26619,
    "c": 0.11094,
    "h": 273.3
  },
  "luminance": 0.01704
}

Semantic roles & 50–950 ramp

primary
#171B5A
secondary
#918C3C
accent
#D945E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #171B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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