#160B42#160B42

#160B42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.097 H 283.5°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#160B42
RGBrgb(22, 11, 66)
HSLhsl(252, 71%, 15%)
HSVhsv(252, 83%, 26%)
CMYKcmyk(66.7%, 83.3%, 0%, 74.1%)
CIE-LABlab(7.26, 23.30, -32.62)
CIE-LCHlch(7.26, 40.09, 305.54°)
OKLaboklab(21.06% 0.0225 -0.0941)
OKLCHoklch(21.06% 0.097 283.5)
XYZxyz(1.4336, 0.8032, 5.2327)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160B42 #37420B
analogous
#0B1B42 #160B42 #310B42
triadic
#160B42 #42160B #0B4216
tetradic
#160B42 #420B1B #37420B #0B4231
square
#160B42 #420B1B #37420B #0B4231
split-complementary
#160B42 #42310B #1B420B
monochromatic
#09041A #09041A #160B42 #271476 #391CAB

Accessibility & contrast

On white

18.09
#160B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#160B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #160B42
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160B42#FFFFFF#000000##FFFFFF
##160B421.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #160b42;
/* rgb */ color: rgb(22, 11, 66);
/* oklch */ color: oklch(21.1% 0.097 283.5);
Tailwind
colors: {
  custom: {
    50: '#5a4b77',
    500: '#160b42',
    950: '#000000',
  },
}
SCSS
$custom: #160b42;
$custom-light: #5a4b77;
$custom-dark: #000000;
JSON
{
  "hex": "#160b42",
  "rgb": {
    "r": 22,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.21058,
    "c": 0.09677,
    "h": 283.5
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#160B42
secondary
#6E7F2A
accent
#EE3ACA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #160B42

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

Preview Lab → · Contrast checker → · Palette generator →

#160B42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva