#170F2F#170F2F

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

Color values

HEX#170F2F
RGBrgb(23, 15, 47)
HSLhsl(255, 52%, 12%)
HSVhsv(255, 68%, 18%)
CMYKcmyk(51.1%, 68.1%, 0%, 81.6%)
CIE-LABlab(6.58, 13.55, -19.92)
CIE-LCHlch(6.58, 24.09, 304.23°)
OKLaboklab(19.97% 0.0223 -0.0571)
OKLCHoklch(19.97% 0.061 291.4)
XYZxyz(1.0371, 0.7290, 2.7748)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F2F #272F0F
analogous
#0F172F #170F2F #270F2F
triadic
#170F2F #2F170F #0F2F17
tetradic
#170F2F #2F0F17 #272F0F #0F2F27
square
#170F2F #2F0F17 #272F0F #0F2F27
split-complementary
#170F2F #2F270F #172F0F
monochromatic
#0B0717 #0B0717 #170F2F #2E1E5D #442D8C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##170F2F#FFFFFF#000000##FFFFFF
##170F2F1.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)
#021530
Deuteranopia (green-blind)
#03142E
Tritanopia (blue-blind)
#10161D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170f2f;
/* rgb */ color: rgb(23, 15, 47);
/* oklch */ color: oklch(20.0% 0.061 291.4);
Tailwind
colors: {
  custom: {
    50: '#564d68',
    500: '#170f2f',
    950: '#000000',
  },
}
SCSS
$custom: #170f2f;
$custom-light: #564d68;
$custom-dark: #000000;
JSON
{
  "hex": "#170f2f",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 255,
    "s": 51.613,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19971,
    "c": 0.06134,
    "h": 291.4
  },
  "luminance": 0.00729
}

Semantic roles & 50–950 ramp

primary
#170F2F
secondary
#5B6931
accent
#DB4DB7
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #170F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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