#170B36#170B36

#170B36 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.079 H 290.1°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#170B36
RGBrgb(23, 11, 54)
HSLhsl(257, 66%, 13%)
HSVhsv(257, 80%, 21%)
CMYKcmyk(57.4%, 79.6%, 0%, 78.8%)
CIE-LABlab(6.21, 18.66, -25.67)
CIE-LCHlch(6.21, 31.74, 306.02°)
OKLaboklab(19.86% 0.0272 -0.0743)
OKLCHoklch(19.86% 0.079 290.1)
XYZxyz(1.1387, 0.6878, 3.5621)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B36 #2A360B
analogous
#0B1436 #170B36 #2C0B36
triadic
#170B36 #36170B #0B3617
tetradic
#170B36 #360B14 #2A360B #0B362C
square
#170B36 #360B14 #2A360B #0B362C
split-complementary
#170B36 #362C0B #14360B
monochromatic
#0B0519 #0B0519 #170B36 #2D1569 #42209C

Accessibility & contrast

On white

18.46
#170B36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B36
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B36#FFFFFF#000000##FFFFFF
##170B361.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.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: #170b36;
/* rgb */ color: rgb(23, 11, 54);
/* oklch */ color: oklch(19.9% 0.079 290.1);
Tailwind
colors: {
  custom: {
    50: '#574b6d',
    500: '#170b36',
    950: '#000000',
  },
}
SCSS
$custom: #170b36;
$custom-light: #574b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170b36",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 54
  },
  "hsl": {
    "h": 256.744,
    "s": 66.154,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19858,
    "c": 0.07916,
    "h": 290.1
  },
  "luminance": 0.00688
}

Semantic roles & 50–950 ramp

primary
#170B36
secondary
#5E732A
accent
#E93FBA
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170B36

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

Preview Lab → · Contrast checker → · Palette generator →

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