#17178D#17178D

#17178D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.183 H 269.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#17178D
RGBrgb(23, 23, 141)
HSLhsl(240, 72%, 32%)
HSVhsv(240, 84%, 55%)
CMYKcmyk(83.7%, 83.7%, 0%, 44.7%)
CIE-LABlab(18.87, 42.67, -63.04)
CIE-LCHlch(18.87, 76.12, 304.09°)
OKLaboklab(31.92% -0.0009 -0.1825)
OKLCHoklch(31.92% 0.183 269.7)
XYZxyz(5.4658, 2.7174, 25.4306)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17178D #8D8D17
analogous
#17528D #17178D #52178D
triadic
#17178D #8D1717 #178D17
tetradic
#17178D #8D1752 #8D8D17 #178D52
square
#17178D #8D1752 #8D8D17 #178D52
split-complementary
#17178D #8D5217 #528D17
monochromatic
#060624 #0E0E58 #17178D #2020C2 #3F3FE0

Accessibility & contrast

On white

13.60
#17178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17178D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17178D#FFFFFF#000000##FFFFFF
##17178D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17178d;
/* rgb */ color: rgb(23, 23, 141);
/* oklch */ color: oklch(31.9% 0.183 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d57b0',
    500: '#17178d',
    950: '#000000',
  },
}
SCSS
$custom: #17178d;
$custom-light: #6d57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#17178d",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 240,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.31922,
    "c": 0.18252,
    "h": 269.7
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17178D

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

Preview Lab → · Contrast checker → · Palette generator →

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