#17178F#17178F

#17178F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.185 H 269.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#17178F
RGBrgb(23, 23, 143)
HSLhsl(240, 72%, 33%)
HSVhsv(240, 84%, 56%)
CMYKcmyk(83.9%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.13, 43.32, -63.86)
CIE-LCHlch(19.13, 77.17, 304.15°)
OKLaboklab(32.17% -0.0013 -0.1849)
OKLCHoklch(32.17% 0.185 269.6)
XYZxyz(5.6160, 2.7775, 26.2214)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17178F #8F8F17
analogous
#17538F #17178F #53178F
triadic
#17178F #8F1717 #178F17
tetradic
#17178F #8F1753 #8F8F17 #178F53
square
#17178F #8F1753 #8F8F17 #178F53
split-complementary
#17178F #8F5317 #538F17
monochromatic
#060626 #0F0F5A #17178F #1F1FC4 #4040E0

Accessibility & contrast

On white

13.50
#17178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#17178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17178F
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17178F#FFFFFF#000000##FFFFFF
##17178F1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17178f;
/* rgb */ color: rgb(23, 23, 143);
/* oklch */ color: oklch(32.2% 0.185 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e58b1',
    500: '#17178f',
    950: '#000000',
  },
}
SCSS
$custom: #17178f;
$custom-light: #6e58b1;
$custom-dark: #000000;
JSON
{
  "hex": "#17178f",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 240,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32172,
    "c": 0.1849,
    "h": 269.6
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#17178F
secondary
#C1C141
accent
#EF39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #17178F

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

Preview Lab → · Contrast checker → · Palette generator →

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