#17178E#17178E

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

Color values

HEX#17178E
RGBrgb(23, 23, 142)
HSLhsl(240, 72%, 32%)
HSVhsv(240, 84%, 56%)
CMYKcmyk(83.8%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.00, 43.00, -63.45)
CIE-LCHlch(19.00, 76.65, 304.12°)
OKLaboklab(32.05% -0.0011 -0.1837)
OKLCHoklch(32.05% 0.184 269.7)
XYZxyz(5.5406, 2.7473, 25.8242)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17178E #8E8E17
analogous
#17538E #17178E #53178E
triadic
#17178E #8E1717 #178E17
tetradic
#17178E #8E1753 #8E8E17 #178E53
square
#17178E #8E1753 #8E8E17 #178E53
split-complementary
#17178E #8E5317 #538E17
monochromatic
#060625 #0E0E59 #17178E #2020C3 #3F3FE0

Accessibility & contrast

On white

13.55
#17178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#17178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17178E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17178E#FFFFFF#000000##FFFFFF
##17178E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #17178e;
/* rgb */ color: rgb(23, 23, 142);
/* oklch */ color: oklch(32.0% 0.184 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e58b0',
    500: '#17178e',
    950: '#000000',
  },
}
SCSS
$custom: #17178e;
$custom-light: #6e58b0;
$custom-dark: #000000;
JSON
{
  "hex": "#17178e",
  "rgb": {
    "r": 23,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 240,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32047,
    "c": 0.18371,
    "h": 269.7
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17178E

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

Preview Lab → · Contrast checker → · Palette generator →

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