#170D2E#170D2E

#170D2E is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.5% C 0.063 H 293.6°. Best body text is #FFFFFF at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#170D2E
RGBrgb(23, 13, 46)
HSLhsl(258, 56%, 12%)
HSVhsv(258, 72%, 18%)
CMYKcmyk(50%, 71.7%, 0%, 82%)
CIE-LABlab(6.03, 14.26, -20.06)
CIE-LCHlch(6.03, 24.62, 305.41°)
OKLaboklab(19.46% 0.0254 -0.058)
OKLCHoklch(19.46% 0.063 293.6)
XYZxyz(0.9903, 0.6672, 2.6609)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170D2E #242E0D
analogous
#0D142E #170D2E #280D2E
triadic
#170D2E #2E170D #0D2E17
tetradic
#170D2E #2E0D14 #242E0D #0D2E28
square
#170D2E #2E0D14 #242E0D #0D2E28
split-complementary
#170D2E #2E280D #142E0D
monochromatic
#0C0718 #0C0718 #170D2E #2F1A5E #47288D

Accessibility & contrast

On white

18.53
#170D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170D2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170D2E
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170D2E#FFFFFF#000000##FFFFFF
##170D2E1.0018.531.1318.53
#FFFFFF18.531.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00142F
Deuteranopia (green-blind)
#01132D
Tritanopia (blue-blind)
#11141B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170d2e;
/* rgb */ color: rgb(23, 13, 46);
/* oklch */ color: oklch(19.5% 0.063 293.6);
Tailwind
colors: {
  custom: {
    50: '#564c67',
    500: '#170d2e',
    950: '#000000',
  },
}
SCSS
$custom: #170d2e;
$custom-light: #564c67;
$custom-dark: #000000;
JSON
{
  "hex": "#170d2e",
  "rgb": {
    "r": 23,
    "g": 13,
    "b": 46
  },
  "hsl": {
    "h": 258.182,
    "s": 55.932,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19463,
    "c": 0.06335,
    "h": 293.6
  },
  "luminance": 0.00667
}

Semantic roles & 50–950 ramp

primary
#170D2E
secondary
#57692E
accent
#DF49B2
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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