#170940#170940

#170940 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.096 H 286.1°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#170940
RGBrgb(23, 9, 64)
HSLhsl(255, 75%, 14%)
HSVhsv(255, 86%, 25%)
CMYKcmyk(64.1%, 85.9%, 0%, 74.9%)
CIE-LABlab(6.75, 23.79, -32.01)
CIE-LCHlch(6.75, 39.89, 306.62°)
OKLaboklab(20.63% 0.0267 -0.0925)
OKLCHoklch(20.63% 0.096 286.1)
XYZxyz(1.3762, 0.7476, 4.9213)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#170940 #324009
analogous
#091740 #170940 #330940
triadic
#170940 #401709 #094017
tetradic
#170940 #400917 #324009 #094033
square
#170940 #400917 #324009 #094033
split-complementary
#170940 #403309 #174009
monochromatic
#0A041B #0A041B #170940 #2A1176 #3E18AB

Accessibility & contrast

On white

18.27
#170940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#170940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #170940
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##170940#FFFFFF#000000##FFFFFF
##1709401.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#051924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #170940;
/* rgb */ color: rgb(23, 9, 64);
/* oklch */ color: oklch(20.6% 0.096 286.1);
Tailwind
colors: {
  custom: {
    50: '#5a4a75',
    500: '#170940',
    950: '#000000',
  },
}
SCSS
$custom: #170940;
$custom-light: #5a4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#170940",
  "rgb": {
    "r": 23,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 255.273,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2063,
    "c": 0.09629,
    "h": 286.1
  },
  "luminance": 0.00748
}

Semantic roles & 50–950 ramp

primary
#170940
secondary
#687E27
accent
#F236C2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #170940

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

Preview Lab → · Contrast checker → · Palette generator →

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