#160C42#160C42

#160C42 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.096 H 283.1°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#160C42
RGBrgb(22, 12, 66)
HSLhsl(251, 69%, 15%)
HSVhsv(251, 82%, 26%)
CMYKcmyk(66.7%, 81.8%, 0%, 74.1%)
CIE-LABlab(7.47, 22.72, -32.27)
CIE-LCHlch(7.47, 39.46, 305.15°)
OKLaboklab(21.22% 0.0217 -0.093)
OKLCHoklch(21.22% 0.096 283.1)
XYZxyz(1.4454, 0.8268, 5.2366)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160C42 #38420C
analogous
#0C1D42 #160C42 #310C42
triadic
#160C42 #42160C #0C4216
tetradic
#160C42 #420C1D #38420C #0C4231
square
#160C42 #420C1D #38420C #0C4231
split-complementary
#160C42 #42310C #1D420C
monochromatic
#09051A #09051A #160C42 #271576 #391FAA

Accessibility & contrast

On white

18.02
#160C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#160C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #160C42
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160C42#FFFFFF#000000##FFFFFF
##160C421.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #160c42;
/* rgb */ color: rgb(22, 12, 66);
/* oklch */ color: oklch(21.2% 0.096 283.1);
Tailwind
colors: {
  custom: {
    50: '#5a4c77',
    500: '#160c42',
    950: '#000000',
  },
}
SCSS
$custom: #160c42;
$custom-light: #5a4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#160c42",
  "rgb": {
    "r": 22,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 251.111,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21217,
    "c": 0.09553,
    "h": 283.1
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#160C42
secondary
#6F7E2C
accent
#EC3CCB
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #160C42

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

Preview Lab → · Contrast checker → · Palette generator →

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