#160228#160228

#160228 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.077 H 304.4°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#160228
RGBrgb(22, 2, 40)
HSLhsl(272, 90%, 8%)
HSVhsv(272, 95%, 16%)
CMYKcmyk(45%, 95%, 0%, 84.3%)
CIE-LABlab(3.32, 15.83, -19.81)
CIE-LCHlch(3.32, 25.36, 308.64°)
OKLaboklab(16.43% 0.0434 -0.0635)
OKLCHoklch(16.43% 0.077 304.4)
XYZxyz(0.7355, 0.3672, 2.0392)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#160228 #142802
analogous
#030228 #160228 #280227
triadic
#160228 #281602 #022816
tetradic
#160228 #280302 #142802 #022728
square
#160228 #280302 #142802 #022728
split-complementary
#160228 #272802 #022803
monochromatic
#10011D #10011D #160228 #360562 #56089D

Accessibility & contrast

On white

19.56
#160228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#160228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #160228
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##160228#FFFFFF#000000##FFFFFF
##1602281.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B29
Deuteranopia (green-blind)
#000C27
Tritanopia (blue-blind)
#120A14
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #160228;
/* rgb */ color: rgb(22, 2, 40);
/* oklch */ color: oklch(16.4% 0.077 304.4);
Tailwind
colors: {
  custom: {
    50: '#534762',
    500: '#160228',
    950: '#000000',
  },
}
SCSS
$custom: #160228;
$custom-light: #534762;
$custom-dark: #000000;
JSON
{
  "hex": "#160228",
  "rgb": {
    "r": 22,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 271.579,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.1643,
    "c": 0.07692,
    "h": 304.4
  },
  "luminance": 0.00367
}

Semantic roles & 50–950 ramp

primary
#160228
secondary
#416D19
accent
#FF298E
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #160228

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

Preview Lab → · Contrast checker → · Palette generator →

#160228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva