#171166#171166

#171166 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.3% C 0.139 H 274.2°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#171166
RGBrgb(23, 17, 102)
HSLhsl(244, 71%, 23%)
HSVhsv(244, 83%, 40%)
CMYKcmyk(77.5%, 83.3%, 0%, 60%)
CIE-LABlab(12.87, 32.70, -47.96)
CIE-LCHlch(12.87, 58.05, 304.29°)
OKLaboklab(26.32% 0.0103 -0.1387)
OKLCHoklch(26.32% 0.139 274.2)
XYZxyz(2.9513, 1.5421, 12.7099)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171166 #606611
analogous
#113566 #171166 #411166
triadic
#171166 #661711 #116617
tetradic
#171166 #661135 #606611 #116641
square
#171166 #661135 #606611 #116641
split-complementary
#171166 #664111 #356611
monochromatic
#06041A #0B0832 #171166 #231A9A #2F22CF

Accessibility & contrast

On white

16.05
#171166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171166
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171166#FFFFFF#000000##FFFFFF
##1711661.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002568
Deuteranopia (green-blind)
#001D65
Tritanopia (blue-blind)
#002B3B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171166;
/* rgb */ color: rgb(23, 17, 102);
/* oklch */ color: oklch(26.3% 0.139 274.2);
Tailwind
colors: {
  custom: {
    50: '#635193',
    500: '#171166',
    950: '#000000',
  },
}
SCSS
$custom: #171166;
$custom-light: #635193;
$custom-dark: #000000;
JSON
{
  "hex": "#171166",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 244.235,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.26322,
    "c": 0.13911,
    "h": 274.2
  },
  "luminance": 0.01542
}

Semantic roles & 50–950 ramp

primary
#171166
secondary
#979E35
accent
#EE3AE1
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #171166

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

Preview Lab → · Contrast checker → · Palette generator →

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