#220C28#220C28

#220C28 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.4% C 0.060 H 318.6°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#220C28
RGBrgb(34, 12, 40)
HSLhsl(287, 54%, 10%)
HSVhsv(287, 70%, 16%)
CMYKcmyk(15%, 70%, 0%, 84.3%)
CIE-LABlab(6.83, 17.17, -14.20)
CIE-LCHlch(6.83, 22.28, 320.42°)
OKLaboklab(20.36% 0.0452 -0.0398)
OKLCHoklch(20.36% 0.06 318.6)
XYZxyz(1.1741, 0.7563, 2.0912)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C28 #12280C
analogous
#140C28 #220C28 #280C20
triadic
#220C28 #28220C #0C2822
tetradic
#220C28 #28140C #12280C #0C2028
square
#220C28 #28140C #12280C #0C2028
split-complementary
#220C28 #20280C #0C2814
monochromatic
#140718 #140718 #220C28 #4A1A57 #722886

Accessibility & contrast

On white

18.24
#220C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#220C28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C28
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C28#FFFFFF#000000##FFFFFF
##220C281.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061429
Deuteranopia (green-blind)
#0D1627
Tritanopia (blue-blind)
#221018
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #220c28;
/* rgb */ color: rgb(34, 12, 40);
/* oklch */ color: oklch(20.4% 0.060 318.6);
Tailwind
colors: {
  custom: {
    50: '#5e4c62',
    500: '#220c28',
    950: '#000000',
  },
}
SCSS
$custom: #220c28;
$custom-light: #5e4c62;
$custom-dark: #000000;
JSON
{
  "hex": "#220c28",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 287.143,
    "s": 53.846,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20364,
    "c": 0.06021,
    "h": 318.6
  },
  "luminance": 0.00756
}

Semantic roles & 50–950 ramp

primary
#220C28
secondary
#38632D
accent
#DD4B6A
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #220C28

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

Preview Lab → · Contrast checker → · Palette generator →

#220C28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva