#17178A#17178A

#17178A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.179 H 269.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#17178A
RGBrgb(23, 23, 138)
HSLhsl(240, 71%, 32%)
HSVhsv(240, 83%, 54%)
CMYKcmyk(83.3%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.49, 41.69, -61.79)
CIE-LCHlch(18.49, 74.54, 304.00°)
OKLaboklab(31.55% -0.0002 -0.1789)
OKLCHoklch(31.55% 0.179 269.9)
XYZxyz(5.2456, 2.6293, 24.2709)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17178A #8A8A17
analogous
#17518A #17178A #51178A
triadic
#17178A #8A1717 #178A17
tetradic
#17178A #8A1751 #8A8A17 #178A51
square
#17178A #8A1751 #8A8A17 #178A51
split-complementary
#17178A #8A5117 #518A17
monochromatic
#060621 #0E0E56 #17178A #2020BE #3D3DDF

Accessibility & contrast

On white

13.76
#17178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#17178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17178A
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17178A#FFFFFF#000000##FFFFFF
##17178A1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #17178a;
/* rgb */ color: rgb(23, 23, 138);
/* oklch */ color: oklch(31.5% 0.179 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d57ad',
    500: '#17178a',
    950: '#000000',
  },
}
SCSS
$custom: #17178a;
$custom-light: #6d57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#17178a",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31548,
    "c": 0.17892,
    "h": 269.9
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#17178A
secondary
#BEBE3F
accent
#EE3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #17178A

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

Preview Lab → · Contrast checker → · Palette generator →

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