#170849#170849

#170849 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.110 H 282.8°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#170849
RGBrgb(23, 8, 73)
HSLhsl(254, 80%, 16%)
HSVhsv(254, 89%, 29%)
CMYKcmyk(68.5%, 89%, 0%, 71.4%)
CIE-LABlab(7.56, 27.72, -37.05)
CIE-LCHlch(7.56, 46.28, 306.80°)
OKLaboklab(21.56% 0.0244 -0.1069)
OKLCHoklch(21.56% 0.11 282.8)
XYZxyz(1.6424, 0.8367, 6.3770)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170849 #3A4908
analogous
#081949 #170849 #370849
triadic
#170849 #491708 #084917
tetradic
#170849 #490819 #3A4908 #084937
square
#170849 #490819 #3A4908 #084937
split-complementary
#170849 #493708 #194908
monochromatic
#09031C #09031C #170849 #280E80 #3A14B7

Accessibility & contrast

On white

17.99
#170849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#170849 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170849
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170849#FFFFFF#000000##FFFFFF
##1708491.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00194B
Deuteranopia (green-blind)
#001448
Tritanopia (blue-blind)
#001C29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #170849;
/* rgb */ color: rgb(23, 8, 73);
/* oklch */ color: oklch(21.6% 0.110 282.8);
Tailwind
colors: {
  custom: {
    50: '#5d4a7d',
    500: '#170849',
    950: '#000000',
  },
}
SCSS
$custom: #170849;
$custom-light: #5d4a7d;
$custom-dark: #000000;
JSON
{
  "hex": "#170849",
  "rgb": {
    "r": 23,
    "g": 8,
    "b": 73
  },
  "hsl": {
    "h": 253.846,
    "s": 80.247,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21558,
    "c": 0.10964,
    "h": 282.8
  },
  "luminance": 0.00837
}

Semantic roles & 50–950 ramp

primary
#170849
secondary
#718726
accent
#F731C9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #170849

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

Preview Lab → · Contrast checker → · Palette generator →

#170849 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva