#171CA0#171CA0

#171CA0 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 34.9% C 0.201 H 268.4°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#171CA0
RGBrgb(23, 28, 160)
HSLhsl(238, 75%, 36%)
HSVhsv(238, 86%, 63%)
CMYKcmyk(85.6%, 82.5%, 0%, 37.3%)
CIE-LABlab(22.12, 46.36, -69.37)
CIE-LCHlch(22.12, 83.44, 303.76°)
OKLaboklab(34.87% -0.0056 -0.2009)
OKLCHoklch(34.87% 0.201 268.4)
XYZxyz(7.1116, 3.5499, 33.5613)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171CA0 #A09B17
analogous
#1760A0 #171CA0 #5617A0
triadic
#171CA0 #A0171C #1CA017
tetradic
#171CA0 #A01760 #A09B17 #17A056
square
#171CA0 #A01760 #A09B17 #17A056
split-complementary
#171CA0 #A05617 #60A017
monochromatic
#080935 #0F136A #171CA0 #1F25D6 #4C52E5

Accessibility & contrast

On white

12.28
#171CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#171CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171CA0
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171CA0#FFFFFF#000000##FFFFFF
##171CA01.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#002E9E
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #171ca0;
/* rgb */ color: rgb(23, 28, 160);
/* oklch */ color: oklch(34.9% 0.201 268.4);
Tailwind
colors: {
  custom: {
    50: '#725cbe',
    500: '#171ca0',
    950: '#000000',
  },
}
SCSS
$custom: #171ca0;
$custom-light: #725cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#171ca0",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 237.81,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34867,
    "c": 0.201,
    "h": 268.4
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#171CA0
secondary
#C7C34C
accent
#EB36F1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #171CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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