#171B58#171B58

#171B58 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.108 H 273.5°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#171B58
RGBrgb(23, 27, 88)
HSLhsl(236, 59%, 22%)
HSVhsv(236, 74%, 35%)
CMYKcmyk(73.9%, 69.3%, 0%, 65.5%)
CIE-LABlab(13.65, 21.00, -37.33)
CIE-LCHlch(13.65, 42.84, 299.36°)
OKLaboklab(26.41% 0.0065 -0.1078)
OKLCHoklch(26.41% 0.108 273.5)
XYZxyz(2.5061, 1.6704, 9.4210)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B58 #585417
analogous
#173C58 #171B58 #341758
triadic
#171B58 #58171B #1B5817
tetradic
#171B58 #58173C #585417 #175834
square
#171B58 #58173C #585417 #175834
split-complementary
#171B58 #583417 #3C5817
monochromatic
#060718 #0A0C27 #171B58 #242A89 #3039B9

Accessibility & contrast

On white

15.74
#171B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#171B58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B58
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B58#FFFFFF#000000##FFFFFF
##171B581.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #171b58;
/* rgb */ color: rgb(23, 27, 88);
/* oklch */ color: oklch(26.4% 0.108 273.5);
Tailwind
colors: {
  custom: {
    50: '#5e5788',
    500: '#171b58',
    950: '#000000',
  },
}
SCSS
$custom: #171b58;
$custom-light: #5e5788;
$custom-dark: #000000;
JSON
{
  "hex": "#171b58",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 236.308,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26414,
    "c": 0.10796,
    "h": 273.5
  },
  "luminance": 0.01671
}

Semantic roles & 50–950 ramp

primary
#171B58
secondary
#8F8A3C
accent
#D846E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171B58

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

Preview Lab → · Contrast checker → · Palette generator →

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