#170741#170741

#170741 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.100 H 286.3°. Best body text is #FFFFFF at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#170741
RGBrgb(23, 7, 65)
HSLhsl(257, 81%, 14%)
HSVhsv(257, 89%, 25%)
CMYKcmyk(64.6%, 89.2%, 0%, 74.5%)
CIE-LABlab(6.46, 25.24, -33.20)
CIE-LCHlch(6.46, 41.70, 307.25°)
OKLaboklab(20.44% 0.0282 -0.0961)
OKLCHoklch(20.44% 0.1 286.3)
XYZxyz(1.3832, 0.7157, 5.0653)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170741 #314107
analogous
#071441 #170741 #340741
triadic
#170741 #411707 #074117
tetradic
#170741 #410714 #314107 #074134
square
#170741 #410714 #314107 #074134
split-complementary
#170741 #413407 #144107
monochromatic
#0A031C #0A031C #170741 #2B0D78 #3E13B0

Accessibility & contrast

On white

18.37
#170741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170741 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170741
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170741#FFFFFF#000000##FFFFFF
##1707411.0018.371.1418.37
#FFFFFF18.371.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#041824
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170741;
/* rgb */ color: rgb(23, 7, 65);
/* oklch */ color: oklch(20.4% 0.100 286.3);
Tailwind
colors: {
  custom: {
    50: '#5a4976',
    500: '#170741',
    950: '#000000',
  },
}
SCSS
$custom: #170741;
$custom-light: #5a4976;
$custom-dark: #000000;
JSON
{
  "hex": "#170741",
  "rgb": {
    "r": 23,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 256.552,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20437,
    "c": 0.10019,
    "h": 286.3
  },
  "luminance": 0.00716
}

Semantic roles & 50–950 ramp

primary
#170741
secondary
#678024
accent
#F731C0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170741

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

Preview Lab → · Contrast checker → · Palette generator →

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