#170F34#170F34

#170F34 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.4% C 0.070 H 288.6°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#170F34
RGBrgb(23, 15, 52)
HSLhsl(253, 55%, 13%)
HSVhsv(253, 71%, 20%)
CMYKcmyk(55.8%, 71.2%, 0%, 79.6%)
CIE-LABlab(6.97, 15.57, -22.98)
CIE-LCHlch(6.97, 27.76, 304.11°)
OKLaboklab(20.42% 0.0222 -0.0659)
OKLCHoklch(20.42% 0.07 288.6)
XYZxyz(1.1438, 0.7717, 3.3368)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F34 #2C340F
analogous
#0F1934 #170F34 #290F34
triadic
#170F34 #34170F #0F3417
tetradic
#170F34 #340F19 #2C340F #0F3429
square
#170F34 #340F19 #2C340F #0F3429
split-complementary
#170F34 #34290F #19340F
monochromatic
#0B0718 #0B0718 #170F34 #2C1D63 #412A93

Accessibility & contrast

On white

18.19
#170F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F34
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F34#FFFFFF#000000##FFFFFF
##170F341.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001635
Deuteranopia (green-blind)
#001433
Tritanopia (blue-blind)
#0E171F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170f34;
/* rgb */ color: rgb(23, 15, 52);
/* oklch */ color: oklch(20.4% 0.070 288.6);
Tailwind
colors: {
  custom: {
    50: '#574d6c',
    500: '#170f34',
    950: '#000000',
  },
}
SCSS
$custom: #170f34;
$custom-light: #574d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#170f34",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 52
  },
  "hsl": {
    "h": 252.973,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20424,
    "c": 0.06957,
    "h": 288.6
  },
  "luminance": 0.00772
}

Semantic roles & 50–950 ramp

primary
#170F34
secondary
#616E31
accent
#DF49BE
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170F34

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

Preview Lab → · Contrast checker → · Palette generator →

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