#170440#170440

#170440 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.103 H 287.8°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#170440
RGBrgb(23, 4, 64)
HSLhsl(259, 88%, 13%)
HSVhsv(259, 94%, 25%)
CMYKcmyk(64.1%, 93.8%, 0%, 74.9%)
CIE-LABlab(5.77, 26.39, -33.62)
CIE-LCHlch(5.77, 42.74, 308.14°)
OKLaboklab(19.83% 0.0315 -0.098)
OKLCHoklch(19.83% 0.103 287.8)
XYZxyz(1.3219, 0.6391, 4.9032)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170440 #2D4004
analogous
#040F40 #170440 #350440
triadic
#170440 #401704 #044017
tetradic
#170440 #40040F #2D4004 #044035
square
#170440 #40040F #2D4004 #044035
split-complementary
#170440 #403504 #0F4004
monochromatic
#0A021D #0A021D #170440 #2C087A #400BB3

Accessibility & contrast

On white

18.62
#170440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#170440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170440
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170440#FFFFFF#000000##FFFFFF
##1704401.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#051623
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #170440;
/* rgb */ color: rgb(23, 4, 64);
/* oklch */ color: oklch(19.8% 0.103 287.8);
Tailwind
colors: {
  custom: {
    50: '#5a4776',
    500: '#170440',
    950: '#000000',
  },
}
SCSS
$custom: #170440;
$custom-light: #5a4776;
$custom-dark: #000000;
JSON
{
  "hex": "#170440",
  "rgb": {
    "r": 23,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 259,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.1983,
    "c": 0.10294,
    "h": 287.8
  },
  "luminance": 0.00639
}

Semantic roles & 50–950 ramp

primary
#170440
secondary
#62811F
accent
#FE29BB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #170440

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

Preview Lab → · Contrast checker → · Palette generator →

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