#170F3A#170F3A

#170F3A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.079 H 285.9°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#170F3A
RGBrgb(23, 15, 58)
HSLhsl(251, 59%, 14%)
HSVhsv(251, 74%, 23%)
CMYKcmyk(60.3%, 74.1%, 0%, 77.3%)
CIE-LABlab(7.49, 17.95, -26.50)
CIE-LCHlch(7.49, 32.01, 304.10°)
OKLaboklab(21.01% 0.0217 -0.0761)
OKLCHoklch(21.01% 0.079 285.9)
XYZxyz(1.2877, 0.8292, 4.0944)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F3A #323A0F
analogous
#0F1D3A #170F3A #2D0F3A
triadic
#170F3A #3A170F #0F3A17
tetradic
#170F3A #3A0F1D #323A0F #0F3A2D
square
#170F3A #3A0F1D #323A0F #0F3A2D
split-complementary
#170F3A #3A2D0F #1D3A0F
monochromatic
#0A0618 #0A0618 #170F3A #2A1C6B #3E289B

Accessibility & contrast

On white

18.01
#170F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170F3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F3A
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F3A#FFFFFF#000000##FFFFFF
##170F3A1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#091922
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170f3a;
/* rgb */ color: rgb(23, 15, 58);
/* oklch */ color: oklch(21.0% 0.079 285.9);
Tailwind
colors: {
  custom: {
    50: '#584d71',
    500: '#170f3a',
    950: '#000000',
  },
}
SCSS
$custom: #170f3a;
$custom-light: #584d71;
$custom-dark: #000000;
JSON
{
  "hex": "#170f3a",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 251.163,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21005,
    "c": 0.07913,
    "h": 285.9
  },
  "luminance": 0.00829
}

Semantic roles & 50–950 ramp

primary
#170F3A
secondary
#687430
accent
#E246C5
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #170F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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