#170346#170346

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

Color values

HEX#170346
RGBrgb(23, 3, 70)
HSLhsl(258, 92%, 14%)
HSVhsv(258, 96%, 27%)
CMYKcmyk(67.1%, 95.7%, 0%, 72.5%)
CIE-LABlab(6.23, 29.36, -37.13)
CIE-LCHlch(6.23, 47.34, 308.33°)
OKLaboklab(20.44% 0.0296 -0.1077)
OKLCHoklch(20.44% 0.112 285.4)
XYZxyz(1.4911, 0.6894, 5.8477)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170346 #324603
analogous
#031146 #170346 #390346
triadic
#170346 #461703 #034617
tetradic
#170346 #460311 #324603 #034639
square
#170346 #460311 #324603 #034639
split-complementary
#170346 #463903 #114603
monochromatic
#0A011D #0A011D #170346 #2A0681 #3E08BB

Accessibility & contrast

On white

18.46
#170346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170346
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170346#FFFFFF#000000##FFFFFF
##1703461.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001648
Deuteranopia (green-blind)
#001245
Tritanopia (blue-blind)
#001826
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170346;
/* rgb */ color: rgb(23, 3, 70);
/* oklch */ color: oklch(20.4% 0.112 285.4);
Tailwind
colors: {
  custom: {
    50: '#5c477a',
    500: '#170346',
    950: '#000000',
  },
}
SCSS
$custom: #170346;
$custom-light: #5c477a;
$custom-dark: #000000;
JSON
{
  "hex": "#170346",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 257.91,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20436,
    "c": 0.11173,
    "h": 285.4
  },
  "luminance": 0.00689
}

Semantic roles & 50–950 ramp

primary
#170346
secondary
#68871D
accent
#FF29BF
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#050009
muted
#79777B

Preview Lab

Preview with #170346

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

Preview Lab → · Contrast checker → · Palette generator →

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