#170F35#170F35

#170F35 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.5% C 0.071 H 288.2°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#170F35
RGBrgb(23, 15, 53)
HSLhsl(253, 56%, 13%)
HSVhsv(253, 72%, 21%)
CMYKcmyk(56.6%, 71.7%, 0%, 79.2%)
CIE-LABlab(7.05, 15.97, -23.58)
CIE-LCHlch(7.05, 28.48, 304.11°)
OKLaboklab(20.52% 0.0222 -0.0676)
OKLCHoklch(20.52% 0.071 288.2)
XYZxyz(1.1666, 0.7808, 3.4567)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170F35 #2D350F
analogous
#0F1A35 #170F35 #2A0F35
triadic
#170F35 #35170F #0F3517
tetradic
#170F35 #350F1A #2D350F #0F352A
square
#170F35 #350F1A #2D350F #0F352A
split-complementary
#170F35 #352A0F #1A350F
monochromatic
#0A0718 #0A0718 #170F35 #2C1C65 #402A94

Accessibility & contrast

On white

18.16
#170F35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170F35
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170F35#FFFFFF#000000##FFFFFF
##170F351.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001636
Deuteranopia (green-blind)
#001534
Tritanopia (blue-blind)
#0D1820
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170f35;
/* rgb */ color: rgb(23, 15, 53);
/* oklch */ color: oklch(20.5% 0.071 288.2);
Tailwind
colors: {
  custom: {
    50: '#574d6c',
    500: '#170f35',
    950: '#000000',
  },
}
SCSS
$custom: #170f35;
$custom-light: #574d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#170f35",
  "rgb": {
    "r": 23,
    "g": 15,
    "b": 53
  },
  "hsl": {
    "h": 252.632,
    "s": 55.882,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20519,
    "c": 0.07118,
    "h": 288.2
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#170F35
secondary
#626F31
accent
#DF49BF
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #170F35

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

Preview Lab → · Contrast checker → · Palette generator →

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