#170B3A#170B3A

#170B3A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.085 H 288.0°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#170B3A
RGBrgb(23, 11, 58)
HSLhsl(255, 68%, 14%)
HSVhsv(255, 81%, 23%)
CMYKcmyk(60.3%, 81%, 0%, 77.3%)
CIE-LABlab(6.57, 20.33, -28.00)
CIE-LCHlch(6.57, 34.60, 305.97°)
OKLaboklab(20.28% 0.0264 -0.0809)
OKLCHoklch(20.28% 0.085 288)
XYZxyz(1.2365, 0.7269, 4.0773)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B3A #2E3A0B
analogous
#0B163A #170B3A #2E0B3A
triadic
#170B3A #3A170B #0B3A17
tetradic
#170B3A #3A0B16 #2E3A0B #0B3A2E
square
#170B3A #3A0B16 #2E3A0B #0B3A2E
split-complementary
#170B3A #3A2E0B #163A0B
monochromatic
#0A051A #0A051A #170B3A #2B156D #401FA1

Accessibility & contrast

On white

18.33
#170B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B3A
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B3A#FFFFFF#000000##FFFFFF
##170B3A1.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001339
Tritanopia (blue-blind)
#0A1721
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170b3a;
/* rgb */ color: rgb(23, 11, 58);
/* oklch */ color: oklch(20.3% 0.085 288.0);
Tailwind
colors: {
  custom: {
    50: '#584b71',
    500: '#170b3a',
    950: '#000000',
  },
}
SCSS
$custom: #170b3a;
$custom-light: #584b71;
$custom-dark: #000000;
JSON
{
  "hex": "#170b3a",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 255.319,
    "s": 68.116,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20279,
    "c": 0.08509,
    "h": 288
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#170B3A
secondary
#63772A
accent
#EB3DBF
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #170B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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