#160B40#160B40

#160B40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.094 H 284.2°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#160B40
RGBrgb(22, 11, 64)
HSLhsl(252, 71%, 15%)
HSVhsv(252, 83%, 25%)
CMYKcmyk(65.6%, 82.8%, 0%, 74.9%)
CIE-LABlab(7.05, 22.52, -31.54)
CIE-LCHlch(7.05, 38.75, 305.52°)
OKLaboklab(20.83% 0.0231 -0.091)
OKLCHoklch(20.83% 0.094 284.2)
XYZxyz(1.3757, 0.7800, 4.9276)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160B40 #35400B
analogous
#0B1B40 #160B40 #310B40
triadic
#160B40 #40160B #0B4016
tetradic
#160B40 #400B1B #35400B #0B4031
square
#160B40 #400B1B #35400B #0B4031
split-complementary
#160B40 #40310B #1B400B
monochromatic
#09041A #09041A #160B40 #281474 #3A1DA8

Accessibility & contrast

On white

18.17
#160B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #160B40
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160B40#FFFFFF#000000##FFFFFF
##160B401.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#021A24
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #160b40;
/* rgb */ color: rgb(22, 11, 64);
/* oklch */ color: oklch(20.8% 0.094 284.2);
Tailwind
colors: {
  custom: {
    50: '#594b75',
    500: '#160b40',
    950: '#000000',
  },
}
SCSS
$custom: #160b40;
$custom-light: #594b75;
$custom-dark: #000000;
JSON
{
  "hex": "#160b40",
  "rgb": {
    "r": 22,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 252.453,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2083,
    "c": 0.09392,
    "h": 284.2
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#160B40
secondary
#6C7D2A
accent
#ED3AC8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #160B40

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

Preview Lab → · Contrast checker → · Palette generator →

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