#16042D#16042D

#16042D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.4% C 0.078 H 298.6°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#16042D
RGBrgb(22, 4, 45)
HSLhsl(266, 84%, 10%)
HSVhsv(266, 91%, 18%)
CMYKcmyk(51.1%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.04, 17.33, -22.48)
CIE-LCHlch(4.04, 28.38, 307.63°)
OKLaboklab(17.44% 0.0376 -0.0689)
OKLCHoklch(17.44% 0.078 298.6)
XYZxyz(0.8478, 0.4469, 2.5237)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16042D #1B2D04
analogous
#04072D #16042D #2B042D
triadic
#16042D #2D1604 #042D16
tetradic
#16042D #2D0407 #1B2D04 #042D2B
square
#16042D #2D0407 #1B2D04 #042D2B
split-complementary
#16042D #2D2B04 #072D04
monochromatic
#0E021C #0E021C #16042D #310965 #4D0E9D

Accessibility & contrast

On white

19.28
#16042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#16042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #16042D
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16042D#FFFFFF#000000##FFFFFF
##16042D1.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#100E18
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #16042d;
/* rgb */ color: rgb(22, 4, 45);
/* oklch */ color: oklch(17.4% 0.078 298.6);
Tailwind
colors: {
  custom: {
    50: '#544866',
    500: '#16042d',
    950: '#000000',
  },
}
SCSS
$custom: #16042d;
$custom-light: #544866;
$custom-dark: #000000;
JSON
{
  "hex": "#16042d",
  "rgb": {
    "r": 22,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 266.341,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17441,
    "c": 0.07849,
    "h": 298.6
  },
  "luminance": 0.00447
}

Semantic roles & 50–950 ramp

primary
#16042D
secondary
#4B701D
accent
#FA2EA0
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #16042D

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

Preview Lab → · Contrast checker → · Palette generator →

#16042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva