#17178C#17178C

#17178C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.181 H 269.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#17178C
RGBrgb(23, 23, 140)
HSLhsl(240, 72%, 32%)
HSVhsv(240, 84%, 55%)
CMYKcmyk(83.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(18.75, 42.34, -62.62)
CIE-LCHlch(18.75, 75.60, 304.06°)
OKLaboklab(31.8% -0.0007 -0.1813)
OKLCHoklch(31.8% 0.181 269.8)
XYZxyz(5.3918, 2.6878, 25.0405)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17178C #8C8C17
analogous
#17528C #17178C #52178C
triadic
#17178C #8C1717 #178C17
tetradic
#17178C #8C1752 #8C8C17 #178C52
square
#17178C #8C1752 #8C8C17 #178C52
split-complementary
#17178C #8C5217 #528C17
monochromatic
#060623 #0E0E57 #17178C #2020C1 #3E3EDF

Accessibility & contrast

On white

13.66
#17178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#17178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17178C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17178C#FFFFFF#000000##FFFFFF
##17178C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17178c;
/* rgb */ color: rgb(23, 23, 140);
/* oklch */ color: oklch(31.8% 0.181 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d57af',
    500: '#17178c',
    950: '#000000',
  },
}
SCSS
$custom: #17178c;
$custom-light: #6d57af;
$custom-dark: #000000;
JSON
{
  "hex": "#17178c",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 240,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.18132,
    "h": 269.8
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#17178C
secondary
#BFBF3F
accent
#EF39EF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #17178C

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

Preview Lab → · Contrast checker → · Palette generator →

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