#171C96#171C96

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

Color values

HEX#171C96
RGBrgb(23, 28, 150)
HSLhsl(238, 73%, 34%)
HSVhsv(238, 85%, 59%)
CMYKcmyk(84.7%, 81.3%, 0%, 41.2%)
CIE-LABlab(20.88, 43.08, -65.30)
CIE-LCHlch(20.88, 78.22, 303.41°)
OKLaboklab(33.64% -0.0037 -0.1891)
OKLCHoklch(33.64% 0.189 268.9)
XYZxyz(6.2717, 3.2139, 29.1380)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C96 #969117
analogous
#175C96 #171C96 #521796
triadic
#171C96 #96171C #1C9617
tetradic
#171C96 #96175C #969117 #179652
square
#171C96 #96175C #969117 #179652
split-complementary
#171C96 #965217 #5C9617
monochromatic
#07082C #0F1261 #171C96 #1F26CB #454BE2

Accessibility & contrast

On white

12.78
#171C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#171C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C96
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C96#FFFFFF#000000##FFFFFF
##171C961.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c96;
/* rgb */ color: rgb(23, 28, 150);
/* oklch */ color: oklch(33.6% 0.189 268.9);
Tailwind
colors: {
  custom: {
    50: '#705bb6',
    500: '#171c96',
    950: '#000000',
  },
}
SCSS
$custom: #171c96;
$custom-light: #705bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#171c96",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 150
  },
  "hsl": {
    "h": 237.638,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33644,
    "c": 0.18918,
    "h": 268.9
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#171C96
secondary
#C3BE45
accent
#E938F0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171C96

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

Preview Lab → · Contrast checker → · Palette generator →

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