#17168C#17168C

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

Color values

HEX#17168C
RGBrgb(23, 22, 140)
HSLhsl(241, 73%, 32%)
HSVhsv(241, 84%, 55%)
CMYKcmyk(83.6%, 84.3%, 0%, 45.1%)
CIE-LABlab(18.58, 42.84, -62.91)
CIE-LCHlch(18.58, 76.11, 304.26°)
OKLaboklab(31.68% -0.0005 -0.1821)
OKLCHoklch(31.68% 0.182 269.9)
XYZxyz(5.3723, 2.6488, 25.0340)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17168C #8B8C16
analogous
#16508C #17168C #52168C
triadic
#17168C #8C1716 #168C17
tetradic
#17168C #8C1650 #8B8C16 #168C52
square
#17168C #8C1650 #8B8C16 #168C52
split-complementary
#17168C #8C5216 #508C16
monochromatic
#060522 #0E0E57 #17168C #201EC1 #3D3CE0

Accessibility & contrast

On white

13.73
#17168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#17168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17168C
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17168C#FFFFFF#000000##FFFFFF
##17168C1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #17168c;
/* rgb */ color: rgb(23, 22, 140);
/* oklch */ color: oklch(31.7% 0.182 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d57af',
    500: '#17168c',
    950: '#000000',
  },
}
SCSS
$custom: #17168c;
$custom-light: #6d57af;
$custom-dark: #000000;
JSON
{
  "hex": "#17168c",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 240.508,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3168,
    "c": 0.18211,
    "h": 269.9
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#17168C
secondary
#BFC03E
accent
#F038EE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #17168C

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

Preview Lab → · Contrast checker → · Palette generator →

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