#170742#170742

#170742 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.102 H 285.9°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#170742
RGBrgb(23, 7, 66)
HSLhsl(256, 81%, 14%)
HSVhsv(256, 89%, 26%)
CMYKcmyk(65.2%, 89.4%, 0%, 74.1%)
CIE-LABlab(6.57, 25.64, -33.74)
CIE-LCHlch(6.57, 42.37, 307.23°)
OKLaboklab(20.56% 0.0278 -0.0976)
OKLCHoklch(20.56% 0.102 285.9)
XYZxyz(1.4124, 0.7274, 5.2192)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170742 #324207
analogous
#071542 #170742 #350742
triadic
#170742 #421707 #074217
tetradic
#170742 #420715 #324207 #074235
square
#170742 #420715 #324207 #074235
split-complementary
#170742 #423507 #154207
monochromatic
#0A031C #0A031C #170742 #2A0D79 #3E13B1

Accessibility & contrast

On white

18.33
#170742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170742
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170742#FFFFFF#000000##FFFFFF
##1707421.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001341
Tritanopia (blue-blind)
#031824
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170742;
/* rgb */ color: rgb(23, 7, 66);
/* oklch */ color: oklch(20.6% 0.102 285.9);
Tailwind
colors: {
  custom: {
    50: '#5b4977',
    500: '#170742',
    950: '#000000',
  },
}
SCSS
$custom: #170742;
$custom-light: #5b4977;
$custom-dark: #000000;
JSON
{
  "hex": "#170742",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 256.271,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20557,
    "c": 0.10153,
    "h": 285.9
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#170742
secondary
#688124
accent
#F731C1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #170742

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

Preview Lab → · Contrast checker → · Palette generator →

#170742 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva