#170C3B#170C3B

#170C3B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.085 H 287.1°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#170C3B
RGBrgb(23, 12, 59)
HSLhsl(254, 66%, 14%)
HSVhsv(254, 80%, 23%)
CMYKcmyk(61%, 79.7%, 0%, 76.9%)
CIE-LABlab(6.87, 20.18, -28.23)
CIE-LCHlch(6.87, 34.70, 305.57°)
OKLaboklab(20.56% 0.025 -0.0814)
OKLCHoklch(20.56% 0.085 287.1)
XYZxyz(1.2740, 0.7608, 4.2165)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C3B #303B0C
analogous
#0C193B #170C3B #2F0C3B
triadic
#170C3B #3B170C #0C3B17
tetradic
#170C3B #3B0C19 #303B0C #0C3B2F
square
#170C3B #3B0C19 #303B0C #0C3B2F
split-complementary
#170C3B #3B2F0C #193B0C
monochromatic
#0A0519 #0A0519 #170C3B #2B166E #3F21A1

Accessibility & contrast

On white

18.23
#170C3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170C3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C3B
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C3B#FFFFFF#000000##FFFFFF
##170C3B1.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163C
Deuteranopia (green-blind)
#00143A
Tritanopia (blue-blind)
#091822
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170c3b;
/* rgb */ color: rgb(23, 12, 59);
/* oklch */ color: oklch(20.6% 0.085 287.1);
Tailwind
colors: {
  custom: {
    50: '#594b71',
    500: '#170c3b',
    950: '#000000',
  },
}
SCSS
$custom: #170c3b;
$custom-light: #594b71;
$custom-dark: #000000;
JSON
{
  "hex": "#170c3b",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 59
  },
  "hsl": {
    "h": 254.043,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20557,
    "c": 0.08515,
    "h": 287.1
  },
  "luminance": 0.00761
}

Semantic roles & 50–950 ramp

primary
#170C3B
secondary
#65772C
accent
#E93FC1
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040108
muted
#79777B

Preview Lab

Preview with #170C3B

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

Preview Lab → · Contrast checker → · Palette generator →

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