#170336#170336

#170336 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.092 H 294.0°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#170336
RGBrgb(23, 3, 54)
HSLhsl(264, 89%, 11%)
HSVhsv(264, 94%, 21%)
CMYKcmyk(57.4%, 94.4%, 0%, 78.8%)
CIE-LABlab(4.64, 22.45, -28.21)
CIE-LCHlch(4.64, 36.05, 308.52°)
OKLaboklab(18.42% 0.0374 -0.0841)
OKLCHoklch(18.42% 0.092 294)
XYZxyz(1.0516, 0.5136, 3.5330)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170336 #223603
analogous
#030836 #170336 #300336
triadic
#170336 #361703 #033617
tetradic
#170336 #360308 #223603 #033630
square
#170336 #360308 #223603 #033630
split-complementary
#170336 #363003 #083603
monochromatic
#0C021D #0C021D #170336 #300670 #4809AA

Accessibility & contrast

On white

19.04
#170336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#170336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170336
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170336#FFFFFF#000000##FFFFFF
##1703361.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001037
Deuteranopia (green-blind)
#000F35
Tritanopia (blue-blind)
#0D111C
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #170336;
/* rgb */ color: rgb(23, 3, 54);
/* oklch */ color: oklch(18.4% 0.092 294.0);
Tailwind
colors: {
  custom: {
    50: '#58476d',
    500: '#170336',
    950: '#000000',
  },
}
SCSS
$custom: #170336;
$custom-light: #58476d;
$custom-dark: #000000;
JSON
{
  "hex": "#170336",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 263.529,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18421,
    "c": 0.09201,
    "h": 294
  },
  "luminance": 0.00514
}

Semantic roles & 50–950 ramp

primary
#170336
secondary
#54791C
accent
#FF29AB
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #170336

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

Preview Lab → · Contrast checker → · Palette generator →

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