#170C40#170C40

#170C40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.092 H 285.0°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#170C40
RGBrgb(23, 12, 64)
HSLhsl(253, 68%, 15%)
HSVhsv(253, 81%, 25%)
CMYKcmyk(64.1%, 81.2%, 0%, 74.9%)
CIE-LABlab(7.36, 22.15, -31.01)
CIE-LCHlch(7.36, 38.11, 305.54°)
OKLaboklab(21.1% 0.0239 -0.0893)
OKLCHoklch(21.1% 0.092 285)
XYZxyz(1.4100, 0.8152, 4.9325)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170C40 #35400C
analogous
#0C1B40 #170C40 #310C40
triadic
#170C40 #40170C #0C4017
tetradic
#170C40 #400C1B #35400C #0C4031
square
#170C40 #400C1B #35400C #0C4031
split-complementary
#170C40 #40310C #1B400C
monochromatic
#09051A #09051A #170C40 #2A1674 #3C1FA7

Accessibility & contrast

On white

18.06
#170C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170C40
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170C40#FFFFFF#000000##FFFFFF
##170C401.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#041A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #170c40;
/* rgb */ color: rgb(23, 12, 64);
/* oklch */ color: oklch(21.1% 0.092 285.0);
Tailwind
colors: {
  custom: {
    50: '#5a4c75',
    500: '#170c40',
    950: '#000000',
  },
}
SCSS
$custom: #170c40;
$custom-light: #5a4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#170c40",
  "rgb": {
    "r": 23,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 252.692,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21099,
    "c": 0.09249,
    "h": 285
  },
  "luminance": 0.00815
}

Semantic roles & 50–950 ramp

primary
#170C40
secondary
#6B7C2C
accent
#EB3DC6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170C40

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

Preview Lab → · Contrast checker → · Palette generator →

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