#160840#160840

#160840 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.098 H 285.3°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#160840
RGBrgb(22, 8, 64)
HSLhsl(255, 78%, 14%)
HSVhsv(255, 88%, 25%)
CMYKcmyk(65.6%, 87.5%, 0%, 74.9%)
CIE-LABlab(6.45, 24.10, -32.51)
CIE-LCHlch(6.45, 40.47, 306.55°)
OKLaboklab(20.36% 0.0258 -0.0942)
OKLCHoklch(20.36% 0.098 285.3)
XYZxyz(1.3428, 0.7143, 4.9166)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160840 #324008
analogous
#081640 #160840 #320840
triadic
#160840 #401608 #084016
tetradic
#160840 #400816 #324008 #084032
square
#160840 #400816 #324008 #084032
split-complementary
#160840 #403208 #164008
monochromatic
#09031B #09031B #160840 #290F76 #3B16AD

Accessibility & contrast

On white

18.38
#160840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#160840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #160840
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160840#FFFFFF#000000##FFFFFF
##1608401.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #160840;
/* rgb */ color: rgb(22, 8, 64);
/* oklch */ color: oklch(20.4% 0.098 285.3);
Tailwind
colors: {
  custom: {
    50: '#5a4975',
    500: '#160840',
    950: '#000000',
  },
}
SCSS
$custom: #160840;
$custom-light: #5a4975;
$custom-dark: #000000;
JSON
{
  "hex": "#160840",
  "rgb": {
    "r": 22,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 255,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.20363,
    "c": 0.09767,
    "h": 285.3
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#160840
secondary
#687E25
accent
#F434C4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #160840

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

Preview Lab → · Contrast checker → · Palette generator →

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