#171161#171161

#171161 is a dark, vivid blue. Relative luminance 0.014; OKLCH L 25.7% C 0.133 H 275.0°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#171161
RGBrgb(23, 17, 97)
HSLhsl(245, 70%, 22%)
HSVhsv(245, 82%, 38%)
CMYKcmyk(76.3%, 82.5%, 0%, 62%)
CIE-LABlab(12.26, 30.95, -45.66)
CIE-LCHlch(12.26, 55.16, 304.14°)
OKLaboklab(25.71% 0.0116 -0.132)
OKLCHoklch(25.71% 0.133 275)
XYZxyz(2.7108, 1.4459, 11.4432)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171161 #5B6111
analogous
#113361 #171161 #3F1161
triadic
#171161 #611711 #116117
tetradic
#171161 #611133 #5B6111 #11613F
square
#171161 #611133 #5B6111 #11613F
split-complementary
#171161 #613F11 #336111
monochromatic
#06051A #0B082D #171161 #231A95 #3023C9

Accessibility & contrast

On white

16.29
#171161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#171161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171161
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171161#FFFFFF#000000##FFFFFF
##1711611.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002463
Deuteranopia (green-blind)
#001C60
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171161;
/* rgb */ color: rgb(23, 17, 97);
/* oklch */ color: oklch(25.7% 0.133 275.0);
Tailwind
colors: {
  custom: {
    50: '#62518f',
    500: '#171161',
    950: '#000000',
  },
}
SCSS
$custom: #171161;
$custom-light: #62518f;
$custom-dark: #000000;
JSON
{
  "hex": "#171161",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 244.5,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.25713,
    "c": 0.13255,
    "h": 275
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#171161
secondary
#929934
accent
#ED3BE0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #171161

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

Preview Lab → · Contrast checker → · Palette generator →

#171161 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva