#160C40#160C40

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

Color values

HEX#160C40
RGBrgb(22, 12, 64)
HSLhsl(252, 68%, 15%)
HSVhsv(252, 81%, 25%)
CMYKcmyk(65.6%, 81.2%, 0%, 74.9%)
CIE-LABlab(7.26, 21.95, -31.19)
CIE-LCHlch(7.26, 38.14, 305.13°)
OKLaboklab(20.99% 0.0222 -0.0899)
OKLCHoklch(20.99% 0.093 283.8)
XYZxyz(1.3875, 0.8036, 4.9315)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160C40 #36400C
analogous
#0C1C40 #160C40 #300C40
triadic
#160C40 #40160C #0C4016
tetradic
#160C40 #400C1C #36400C #0C4030
square
#160C40 #400C1C #36400C #0C4030
split-complementary
#160C40 #40300C #1C400C
monochromatic
#09051A #09051A #160C40 #281674 #391FA7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##160C40#FFFFFF#000000##FFFFFF
##160C401.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)
#001842
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#021A25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #160c40;
/* rgb */ color: rgb(22, 12, 64);
/* oklch */ color: oklch(21.0% 0.093 283.8);
Tailwind
colors: {
  custom: {
    50: '#594c75',
    500: '#160c40',
    950: '#000000',
  },
}
SCSS
$custom: #160c40;
$custom-light: #594c75;
$custom-dark: #000000;
JSON
{
  "hex": "#160c40",
  "rgb": {
    "r": 22,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 251.538,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20993,
    "c": 0.09263,
    "h": 283.8
  },
  "luminance": 0.00804
}

Semantic roles & 50–950 ramp

primary
#160C40
secondary
#6D7C2C
accent
#EB3DCA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #160C40

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

Preview Lab → · Contrast checker → · Palette generator →

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