#170334#170334

#170334 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.090 H 295.3°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#170334
RGBrgb(23, 3, 52)
HSLhsl(264, 89%, 11%)
HSVhsv(264, 94%, 20%)
CMYKcmyk(55.8%, 94.2%, 0%, 79.6%)
CIE-LABlab(4.47, 21.52, -27.00)
CIE-LCHlch(4.47, 34.53, 308.56°)
OKLaboklab(18.18% 0.0383 -0.0809)
OKLCHoklch(18.18% 0.09 295.3)
XYZxyz(1.0056, 0.4952, 3.2907)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170334 #203403
analogous
#030734 #170334 #2F0334
triadic
#170334 #341703 #033417
tetradic
#170334 #340307 #203403 #03342F
square
#170334 #340307 #203403 #03342F
split-complementary
#170334 #342F03 #073403
monochromatic
#0D021D #0D021D #170334 #31066E #4A0AA8

Accessibility & contrast

On white

19.11
#170334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170334
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170334#FFFFFF#000000##FFFFFF
##1703341.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001035
Deuteranopia (green-blind)
#000F33
Tritanopia (blue-blind)
#0E101B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #170334;
/* rgb */ color: rgb(23, 3, 52);
/* oklch */ color: oklch(18.2% 0.090 295.3);
Tailwind
colors: {
  custom: {
    50: '#57476c',
    500: '#170334',
    950: '#000000',
  },
}
SCSS
$custom: #170334;
$custom-light: #57476c;
$custom-dark: #000000;
JSON
{
  "hex": "#170334",
  "rgb": {
    "r": 23,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 264.49,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18182,
    "c": 0.08953,
    "h": 295.3
  },
  "luminance": 0.00495
}

Semantic roles & 50–950 ramp

primary
#170334
secondary
#52771C
accent
#FF29A8
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030007
muted
#78777A

Preview Lab

Preview with #170334

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

Preview Lab → · Contrast checker → · Palette generator →

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