#17168B#17168B

#17168B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.181 H 269.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#17168B
RGBrgb(23, 22, 139)
HSLhsl(241, 73%, 32%)
HSVhsv(241, 84%, 55%)
CMYKcmyk(83.5%, 84.2%, 0%, 45.5%)
CIE-LABlab(18.45, 42.52, -62.49)
CIE-LCHlch(18.45, 75.58, 304.23°)
OKLaboklab(31.55% -0.0002 -0.1809)
OKLCHoklch(31.55% 0.181 269.9)
XYZxyz(5.2989, 2.6194, 24.6474)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17168B #8A8B16
analogous
#16508B #17168B #52168B
triadic
#17168B #8B1716 #168B17
tetradic
#17168B #8B1650 #8A8B16 #168B52
square
#17168B #8B1650 #8A8B16 #168B52
split-complementary
#17168B #8B5216 #508B16
monochromatic
#060521 #0E0E56 #17168B #201EC0 #3D3BE0

Accessibility & contrast

On white

13.78
#17168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#17168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17168B
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17168B#FFFFFF#000000##FFFFFF
##17168B1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002789
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #17168b;
/* rgb */ color: rgb(23, 22, 139);
/* oklch */ color: oklch(31.6% 0.181 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d57ae',
    500: '#17168b',
    950: '#000000',
  },
}
SCSS
$custom: #17168b;
$custom-light: #6d57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#17168b",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 240.513,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31554,
    "c": 0.18092,
    "h": 269.9
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#17168B
secondary
#BEBF3E
accent
#EF38EE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #17168B

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

Preview Lab → · Contrast checker → · Palette generator →

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