#170C3D#170C3D

#170C3D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.088 H 286.2°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#170C3D
RGBrgb(23, 12, 61)
HSLhsl(253, 67%, 14%)
HSVhsv(253, 80%, 24%)
CMYKcmyk(62.3%, 80.3%, 0%, 76.1%)
CIE-LABlab(7.06, 20.98, -29.36)
CIE-LCHlch(7.06, 36.08, 305.55°)
OKLaboklab(20.77% 0.0246 -0.0846)
OKLCHoklch(20.77% 0.088 286.2)
XYZxyz(1.3269, 0.7820, 4.4950)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C3D #323D0C
analogous
#0C1A3D #170C3D #300C3D
triadic
#170C3D #3D170C #0C3D17
tetradic
#170C3D #3D0C1A #323D0C #0C3D30
square
#170C3D #3D0C1A #323D0C #0C3D30
split-complementary
#170C3D #3D300C #1A3D0C
monochromatic
#0A051A #0A051A #170C3D #2A1670 #3E20A3

Accessibility & contrast

On white

18.16
#170C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170C3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C3D
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C3D#FFFFFF#000000##FFFFFF
##170C3D1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173E
Deuteranopia (green-blind)
#00143C
Tritanopia (blue-blind)
#071923
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170c3d;
/* rgb */ color: rgb(23, 12, 61);
/* oklch */ color: oklch(20.8% 0.088 286.2);
Tailwind
colors: {
  custom: {
    50: '#594c73',
    500: '#170c3d',
    950: '#000000',
  },
}
SCSS
$custom: #170c3d;
$custom-light: #594c73;
$custom-dark: #000000;
JSON
{
  "hex": "#170c3d",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 253.469,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20771,
    "c": 0.08811,
    "h": 286.2
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#170C3D
secondary
#68792C
accent
#EA3EC3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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