#17216C#17216C

#17216C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.6% C 0.129 H 270.2°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#17216C
RGBrgb(23, 33, 108)
HSLhsl(233, 65%, 26%)
HSVhsv(233, 79%, 42%)
CMYKcmyk(78.7%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.24, 24.70, -44.71)
CIE-LCHlch(17.24, 51.08, 298.92°)
OKLaboklab(29.64% 0.0005 -0.1293)
OKLCHoklch(29.64% 0.129 270.2)
XYZxyz(3.6031, 2.3522, 14.4486)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17216C #6C6217
analogous
#174B6C #17216C #37176C
triadic
#17216C #6C1721 #216C17
tetradic
#17216C #6C174B #6C6217 #176C37
square
#17216C #6C174B #6C6217 #176C37
split-complementary
#17216C #6C3717 #4B6C17
monochromatic
#050819 #0C123A #17216C #22309E #2C40D1

Accessibility & contrast

On white

14.28
#17216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#17216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17216C
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17216C#FFFFFF#000000##FFFFFF
##17216C1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #17216c;
/* rgb */ color: rgb(23, 33, 108);
/* oklch */ color: oklch(29.6% 0.129 270.2);
Tailwind
colors: {
  custom: {
    50: '#635c97',
    500: '#17216c',
    950: '#000000',
  },
}
SCSS
$custom: #17216c;
$custom-light: #635c97;
$custom-dark: #000000;
JSON
{
  "hex": "#17216c",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 232.941,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29644,
    "c": 0.12932,
    "h": 270.2
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#17216C
secondary
#A2963D
accent
#D440E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #17216C

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

Preview Lab → · Contrast checker → · Palette generator →

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