#170F36#170F36

#170F36 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.6% C 0.073 H 287.7°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#170F36
RGBrgb(23, 15, 54)
HSLhsl(252, 57%, 14%)
HSVhsv(252, 72%, 21%)
CMYKcmyk(57.4%, 72.2%, 0%, 78.8%)
CIE-LABlab(7.14, 16.37, -24.18)
CIE-LCHlch(7.14, 29.20, 304.10°)
OKLaboklab(20.61% 0.0221 -0.0693)
OKLCHoklch(20.61% 0.073 287.7)
XYZxyz(1.1898, 0.7901, 3.5791)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F36 #2E360F
analogous
#0F1A36 #170F36 #2A0F36
triadic
#170F36 #36170F #0F3617
tetradic
#170F36 #360F1A #2E360F #0F362A
square
#170F36 #360F1A #2E360F #0F362A
split-complementary
#170F36 #362A0F #1A360F
monochromatic
#0A0718 #0A0718 #170F36 #2B1C66 #402A96

Accessibility & contrast

On white

18.13
#170F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#170F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170F36
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F36#FFFFFF#000000##FFFFFF
##170F361.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001737
Deuteranopia (green-blind)
#001535
Tritanopia (blue-blind)
#0C1820
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170f36;
/* rgb */ color: rgb(23, 15, 54);
/* oklch */ color: oklch(20.6% 0.073 287.7);
Tailwind
colors: {
  custom: {
    50: '#574d6d',
    500: '#170f36',
    950: '#000000',
  },
}
SCSS
$custom: #170f36;
$custom-light: #574d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#170f36",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 54
  },
  "hsl": {
    "h": 252.308,
    "s": 56.522,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20614,
    "c": 0.07279,
    "h": 287.7
  },
  "luminance": 0.0079
}

Semantic roles & 50–950 ramp

primary
#170F36
secondary
#637031
accent
#E048C1
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170F36

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

Preview Lab → · Contrast checker → · Palette generator →

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