#17168F#17168F

#17168F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.186 H 269.7°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#17168F
RGBrgb(23, 22, 143)
HSLhsl(240, 73%, 32%)
HSVhsv(240, 85%, 56%)
CMYKcmyk(83.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(18.96, 43.81, -64.14)
CIE-LCHlch(18.96, 77.67, 304.34°)
OKLaboklab(32.06% -0.0011 -0.1857)
OKLCHoklch(32.06% 0.186 269.7)
XYZxyz(5.5965, 2.7385, 26.2149)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17168F #8E8F16
analogous
#16518F #17168F #54168F
triadic
#17168F #8F1716 #168F17
tetradic
#17168F #8F1651 #8E8F16 #168F54
square
#17168F #8F1651 #8E8F16 #168F54
split-complementary
#17168F #8F5416 #518F16
monochromatic
#060625 #0E0E5A #17168F #201EC4 #3F3EE1

Accessibility & contrast

On white

13.57
#17168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#17168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17168F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17168F#FFFFFF#000000##FFFFFF
##17168F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17168f;
/* rgb */ color: rgb(23, 22, 143);
/* oklch */ color: oklch(32.1% 0.186 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e57b1',
    500: '#17168f',
    950: '#000000',
  },
}
SCSS
$custom: #17168f;
$custom-light: #6e57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#17168f",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 240.496,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32058,
    "c": 0.18567,
    "h": 269.7
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#17168F
secondary
#C0C13F
accent
#F038EE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #17168F

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

Preview Lab → · Contrast checker → · Palette generator →

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