#170A40#170A40

#170A40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.095 H 285.7°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#170A40
RGBrgb(23, 10, 64)
HSLhsl(254, 73%, 15%)
HSVhsv(254, 84%, 25%)
CMYKcmyk(64.1%, 84.4%, 0%, 74.9%)
CIE-LABlab(6.95, 23.27, -31.69)
CIE-LCHlch(6.95, 39.32, 306.28°)
OKLaboklab(20.78% 0.0258 -0.0915)
OKLCHoklch(20.78% 0.095 285.7)
XYZxyz(1.3870, 0.7693, 4.9249)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170A40 #33400A
analogous
#0A1840 #170A40 #320A40
triadic
#170A40 #40170A #0A4017
tetradic
#170A40 #400A18 #33400A #0A4032
square
#170A40 #400A18 #33400A #0A4032
split-complementary
#170A40 #40320A #18400A
monochromatic
#0A041A #0A041A #170A40 #2A1275 #3D1BAA

Accessibility & contrast

On white

18.20
#170A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #170A40
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170A40#FFFFFF#000000##FFFFFF
##170A401.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#041924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170a40;
/* rgb */ color: rgb(23, 10, 64);
/* oklch */ color: oklch(20.8% 0.095 285.7);
Tailwind
colors: {
  custom: {
    50: '#5a4a75',
    500: '#170a40',
    950: '#000000',
  },
}
SCSS
$custom: #170a40;
$custom-light: #5a4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#170a40",
  "rgb": {
    "r": 23,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 254.444,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20783,
    "c": 0.09504,
    "h": 285.7
  },
  "luminance": 0.00769
}

Semantic roles & 50–950 ramp

primary
#170A40
secondary
#697D29
accent
#F038C3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170A40

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

Preview Lab → · Contrast checker → · Palette generator →

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