#170C49#170C49

#170C49 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.105 H 281.7°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#170C49
RGBrgb(23, 12, 73)
HSLhsl(251, 72%, 17%)
HSVhsv(251, 84%, 29%)
CMYKcmyk(68.5%, 83.6%, 0%, 71.4%)
CIE-LABlab(8.36, 25.43, -35.73)
CIE-LCHlch(8.36, 43.86, 305.44°)
OKLaboklab(22.12% 0.0214 -0.1031)
OKLCHoklch(22.12% 0.105 281.7)
XYZxyz(1.6870, 0.9260, 6.3919)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C49 #3E490C
analogous
#0C2049 #170C49 #360C49
triadic
#170C49 #49170C #0C4917
tetradic
#170C49 #490C20 #3E490C #0C4936
square
#170C49 #490C20 #3E490C #0C4936
split-complementary
#170C49 #49360C #20490C
monochromatic
#08041A #08041A #170C49 #28157E #381DB2

Accessibility & contrast

On white

17.72
#170C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#170C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170C49
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C49#FFFFFF#000000##FFFFFF
##170C491.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4B
Deuteranopia (green-blind)
#001648
Tritanopia (blue-blind)
#001D2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #170c49;
/* rgb */ color: rgb(23, 12, 73);
/* oklch */ color: oklch(22.1% 0.105 281.7);
Tailwind
colors: {
  custom: {
    50: '#5c4c7c',
    500: '#170c49',
    950: '#000000',
  },
}
SCSS
$custom: #170c49;
$custom-light: #5c4c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#170c49",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 73
  },
  "hsl": {
    "h": 250.82,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22123,
    "c": 0.10526,
    "h": 281.7
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#170C49
secondary
#75852C
accent
#EE39CE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #170C49

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

Preview Lab → · Contrast checker → · Palette generator →

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