#171B96#171B96

#171B96 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.190 H 268.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#171B96
RGBrgb(23, 27, 150)
HSLhsl(238, 73%, 34%)
HSVhsv(238, 85%, 59%)
CMYKcmyk(84.7%, 82%, 0%, 41.2%)
CIE-LABlab(20.70, 43.60, -65.59)
CIE-LCHlch(20.70, 78.76, 303.61°)
OKLaboklab(33.52% -0.0035 -0.19)
OKLCHoklch(33.52% 0.19 268.9)
XYZxyz(6.2484, 3.1673, 29.1303)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B96 #969217
analogous
#175B96 #171B96 #531796
triadic
#171B96 #96171B #1B9617
tetradic
#171B96 #96175B #969217 #179653
square
#171B96 #96175B #969217 #179653
split-complementary
#171B96 #965317 #5B9617
monochromatic
#07082C #0F1161 #171B96 #1F25CB #454AE2

Accessibility & contrast

On white

12.86
#171B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#171B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B96
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B96#FFFFFF#000000##FFFFFF
##171B961.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002B94
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #171b96;
/* rgb */ color: rgb(23, 27, 150);
/* oklch */ color: oklch(33.5% 0.190 268.9);
Tailwind
colors: {
  custom: {
    50: '#705ab6',
    500: '#171b96',
    950: '#000000',
  },
}
SCSS
$custom: #171b96;
$custom-light: #705ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#171b96",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 238.11,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33519,
    "c": 0.19001,
    "h": 268.9
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#171B96
secondary
#C3BF45
accent
#EA38F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171B96

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

Preview Lab → · Contrast checker → · Palette generator →

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