#17166B#17166B

#17166B is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.141 H 272.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#17166B
RGBrgb(23, 22, 107)
HSLhsl(241, 66%, 25%)
HSVhsv(241, 79%, 42%)
CMYKcmyk(78.5%, 79.4%, 0%, 58%)
CIE-LABlab(14.50, 31.55, -48.57)
CIE-LCHlch(14.50, 57.91, 303.01°)
OKLaboklab(27.64% 0.0068 -0.1405)
OKLCHoklch(27.64% 0.141 272.8)
XYZxyz(3.2932, 1.8172, 14.0843)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17166B #6A6B16
analogous
#163F6B #17166B #41166B
triadic
#17166B #6B1716 #166B17
tetradic
#17166B #6B163F #6A6B16 #166B41
square
#17166B #6B163F #6A6B16 #166B41
split-complementary
#17166B #6B4116 #3F6B16
monochromatic
#050519 #0C0C38 #17166B #22209E #2D2BD1

Accessibility & contrast

On white

15.40
#17166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#17166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17166B
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17166B#FFFFFF#000000##FFFFFF
##17166B1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #17166b;
/* rgb */ color: rgb(23, 22, 107);
/* oklch */ color: oklch(27.6% 0.141 272.8);
Tailwind
colors: {
  custom: {
    50: '#645496',
    500: '#17166b',
    950: '#000000',
  },
}
SCSS
$custom: #17166b;
$custom-light: #645496;
$custom-dark: #000000;
JSON
{
  "hex": "#17166b",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 240.706,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27641,
    "c": 0.14072,
    "h": 272.8
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#17166B
secondary
#A0A13B
accent
#E93FE7
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #17166B

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

Preview Lab → · Contrast checker → · Palette generator →

#17166B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva