#170B35#170B35

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

Color values

HEX#170B35
RGBrgb(23, 11, 53)
HSLhsl(257, 66%, 13%)
HSVhsv(257, 79%, 21%)
CMYKcmyk(56.6%, 79.2%, 0%, 79.2%)
CIE-LABlab(6.13, 18.24, -25.07)
CIE-LCHlch(6.13, 31.00, 306.04°)
OKLaboklab(19.76% 0.0274 -0.0727)
OKLCHoklch(19.76% 0.078 290.6)
XYZxyz(1.1154, 0.6785, 3.4397)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170B35 #29350B
analogous
#0B1435 #170B35 #2C0B35
triadic
#170B35 #35170B #0B3517
tetradic
#170B35 #350B14 #29350B #0B352C
square
#170B35 #350B14 #29350B #0B352C
split-complementary
#170B35 #352C0B #14350B
monochromatic
#0B0519 #0B0519 #170B35 #2D1668 #43209A

Accessibility & contrast

On white

18.49
#170B35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170B35
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170B35#FFFFFF#000000##FFFFFF
##170B351.0018.491.1418.49
#FFFFFF18.491.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001436
Deuteranopia (green-blind)
#001334
Tritanopia (blue-blind)
#0D151E
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #170b35;
/* rgb */ color: rgb(23, 11, 53);
/* oklch */ color: oklch(19.8% 0.078 290.6);
Tailwind
colors: {
  custom: {
    50: '#574b6d',
    500: '#170b35',
    950: '#000000',
  },
}
SCSS
$custom: #170b35;
$custom-light: #574b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170b35",
  "rgb": {
    "r": 23,
    "g": 11,
    "b": 53
  },
  "hsl": {
    "h": 257.143,
    "s": 65.625,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19756,
    "c": 0.07766,
    "h": 290.6
  },
  "luminance": 0.00679
}

Semantic roles & 50–950 ramp

primary
#170B35
secondary
#5D722A
accent
#E93FB8
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170B35

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

Preview Lab → · Contrast checker → · Palette generator →

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