#170835#170835

#170835 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.082 H 292.2°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#170835
RGBrgb(23, 8, 53)
HSLhsl(260, 74%, 12%)
HSVhsv(260, 85%, 21%)
CMYKcmyk(56.6%, 84.9%, 0%, 79.2%)
CIE-LABlab(5.54, 19.67, -26.03)
CIE-LCHlch(5.54, 32.63, 307.09°)
OKLaboklab(19.23% 0.0311 -0.0762)
OKLCHoklch(19.23% 0.082 292.2)
XYZxyz(1.0826, 0.6128, 3.4287)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170835 #263508
analogous
#081035 #170835 #2E0835
triadic
#170835 #351708 #083517
tetradic
#170835 #350810 #263508 #08352E
square
#170835 #350810 #263508 #08352E
split-complementary
#170835 #352E08 #103508
monochromatic
#0C041B #0C041B #170835 #2E106A #45189F

Accessibility & contrast

On white

18.71
#170835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#170835 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170835
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170835#FFFFFF#000000##FFFFFF
##1708351.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001336
Deuteranopia (green-blind)
#001134
Tritanopia (blue-blind)
#0E141D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #170835;
/* rgb */ color: rgb(23, 8, 53);
/* oklch */ color: oklch(19.2% 0.082 292.2);
Tailwind
colors: {
  custom: {
    50: '#57496d',
    500: '#170835',
    950: '#000000',
  },
}
SCSS
$custom: #170835;
$custom-light: #57496d;
$custom-dark: #000000;
JSON
{
  "hex": "#170835",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 260,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19233,
    "c": 0.08226,
    "h": 292.2
  },
  "luminance": 0.00613
}

Semantic roles & 50–950 ramp

primary
#170835
secondary
#5A7425
accent
#F037B3
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170835

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

Preview Lab → · Contrast checker → · Palette generator →

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