#16042F#16042F

#16042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.081 H 297.0°. Best body text is #FFFFFF at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#16042F
RGBrgb(22, 4, 47)
HSLhsl(265, 84%, 10%)
HSVhsv(265, 91%, 18%)
CMYKcmyk(53.2%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.18, 18.30, -23.76)
CIE-LCHlch(4.18, 29.99, 307.61°)
OKLaboklab(17.66% 0.0369 -0.0722)
OKLCHoklch(17.66% 0.081 297)
XYZxyz(0.8872, 0.4626, 2.7313)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#16042F #1D2F04
analogous
#04082F #16042F #2B042F
triadic
#16042F #2F1604 #042F16
tetradic
#16042F #2F0408 #1D2F04 #042F2B
square
#16042F #2F0408 #1D2F04 #042F2B
split-complementary
#16042F #2F2B04 #082F04
monochromatic
#0D021C #0D021C #16042F #300967 #4B0EA0

Accessibility & contrast

On white

19.22
#16042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #16042F
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##16042F#FFFFFF#000000##FFFFFF
##16042F1.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#0F0F19
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #16042f;
/* rgb */ color: rgb(22, 4, 47);
/* oklch */ color: oklch(17.7% 0.081 297.0);
Tailwind
colors: {
  custom: {
    50: '#554868',
    500: '#16042f',
    950: '#000000',
  },
}
SCSS
$custom: #16042f;
$custom-light: #554868;
$custom-dark: #000000;
JSON
{
  "hex": "#16042f",
  "rgb": {
    "r": 22,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 265.116,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.17664,
    "c": 0.0811,
    "h": 297
  },
  "luminance": 0.00463
}

Semantic roles & 50–950 ramp

primary
#16042F
secondary
#4E721D
accent
#FB2DA5
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #16042F

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

Preview Lab → · Contrast checker → · Palette generator →

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