#160940#160940

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

Color values

HEX#160940
RGBrgb(22, 9, 64)
HSLhsl(254, 75%, 14%)
HSVhsv(254, 86%, 25%)
CMYKcmyk(65.6%, 85.9%, 0%, 74.9%)
CIE-LABlab(6.65, 23.58, -32.19)
CIE-LCHlch(6.65, 39.90, 306.22°)
OKLaboklab(20.52% 0.0249 -0.0931)
OKLCHoklch(20.52% 0.096 285)
XYZxyz(1.3537, 0.7360, 4.9202)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160940 #334009
analogous
#091840 #160940 #320940
triadic
#160940 #401609 #094016
tetradic
#160940 #400918 #334009 #094032
square
#160940 #400918 #334009 #094032
split-complementary
#160940 #403209 #184009
monochromatic
#09041B #09041B #160940 #281176 #3B18AB

Accessibility & contrast

On white

18.31
#160940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #160940
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160940#FFFFFF#000000##FFFFFF
##1609401.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #160940;
/* rgb */ color: rgb(22, 9, 64);
/* oklch */ color: oklch(20.5% 0.096 285.0);
Tailwind
colors: {
  custom: {
    50: '#5a4a75',
    500: '#160940',
    950: '#000000',
  },
}
SCSS
$custom: #160940;
$custom-light: #5a4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#160940",
  "rgb": {
    "r": 22,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 254.182,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20519,
    "c": 0.09641,
    "h": 285
  },
  "luminance": 0.00736
}

Semantic roles & 50–950 ramp

primary
#160940
secondary
#697E27
accent
#F236C5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #160940

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

Preview Lab → · Contrast checker → · Palette generator →

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