#170C36#170C36

#170C36 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.078 H 289.5°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#170C36
RGBrgb(23, 12, 54)
HSLhsl(256, 64%, 13%)
HSVhsv(256, 78%, 21%)
CMYKcmyk(57.4%, 77.8%, 0%, 78.8%)
CIE-LABlab(6.43, 18.14, -25.32)
CIE-LCHlch(6.43, 31.15, 305.61°)
OKLaboklab(20.04% 0.026 -0.0732)
OKLCHoklch(20.04% 0.078 289.5)
XYZxyz(1.1505, 0.7114, 3.5660)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C36 #2B360C
analogous
#0C1636 #170C36 #2C0C36
triadic
#170C36 #36170C #0C3617
tetradic
#170C36 #360C16 #2B360C #0C362C
square
#170C36 #360C16 #2B360C #0C362C
split-complementary
#170C36 #362C0C #16360C
monochromatic
#0B0619 #0B0619 #170C36 #2C1768 #42229A

Accessibility & contrast

On white

18.39
#170C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#170C36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C36
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C36#FFFFFF#000000##FFFFFF
##170C361.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#001335
Tritanopia (blue-blind)
#0D161F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170c36;
/* rgb */ color: rgb(23, 12, 54);
/* oklch */ color: oklch(20.0% 0.078 289.5);
Tailwind
colors: {
  custom: {
    50: '#574b6d',
    500: '#170c36',
    950: '#000000',
  },
}
SCSS
$custom: #170c36;
$custom-light: #574b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170c36",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 255.714,
    "s": 63.636,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20038,
    "c": 0.07762,
    "h": 289.5
  },
  "luminance": 0.00711
}

Semantic roles & 50–950 ramp

primary
#170C36
secondary
#60722C
accent
#E741BB
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170C36

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

Preview Lab → · Contrast checker → · Palette generator →

#170C36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva