#170A3C#170A3C

#170A3C is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.089 H 287.5°. Best body text is #FFFFFF at 18.34:1 contrast (WCAG AA passes).

Color values

HEX#170A3C
RGBrgb(23, 10, 60)
HSLhsl(256, 71%, 14%)
HSVhsv(256, 83%, 24%)
CMYKcmyk(61.7%, 83.3%, 0%, 76.5%)
CIE-LABlab(6.55, 21.67, -29.47)
CIE-LCHlch(6.55, 36.58, 306.32°)
OKLaboklab(20.33% 0.0269 -0.0852)
OKLCHoklch(20.33% 0.089 287.5)
XYZxyz(1.2773, 0.7254, 4.3468)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A3C #2F3C0A
analogous
#0A163C #170A3C #300A3C
triadic
#170A3C #3C170A #0A3C17
tetradic
#170A3C #3C0A16 #2F3C0A #0A3C30
square
#170A3C #3C0A16 #2F3C0A #0A3C30
split-complementary
#170A3C #3C300A #163C0A
monochromatic
#0A041A #0A041A #170A3C #2B1370 #3F1BA5

Accessibility & contrast

On white

18.34
#170A3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170A3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170A3C
18.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A3C#FFFFFF#000000##FFFFFF
##170A3C1.0018.341.1518.34
#FFFFFF18.341.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163D
Deuteranopia (green-blind)
#00133B
Tritanopia (blue-blind)
#081722
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170a3c;
/* rgb */ color: rgb(23, 10, 60);
/* oklch */ color: oklch(20.3% 0.089 287.5);
Tailwind
colors: {
  custom: {
    50: '#594a72',
    500: '#170a3c',
    950: '#000000',
  },
}
SCSS
$custom: #170a3c;
$custom-light: #594a72;
$custom-dark: #000000;
JSON
{
  "hex": "#170a3c",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 60
  },
  "hsl": {
    "h": 255.6,
    "s": 71.429,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20334,
    "c": 0.08936,
    "h": 287.5
  },
  "luminance": 0.00725
}

Semantic roles & 50–950 ramp

primary
#170A3C
secondary
#647928
accent
#EE3ABF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170A3C

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

Preview Lab → · Contrast checker → · Palette generator →

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