#221228#221228

#221228 is a very dark, muted purple. Relative luminance 0.009; OKLCH L 21.5% C 0.047 H 316.3°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#221228
RGBrgb(34, 18, 40)
HSLhsl(284, 38%, 11%)
HSVhsv(284, 55%, 16%)
CMYKcmyk(15%, 55%, 0%, 84.3%)
CIE-LABlab(8.36, 13.31, -11.80)
CIE-LCHlch(8.36, 17.79, 318.43°)
OKLaboklab(21.54% 0.0342 -0.0326)
OKLCHoklch(21.54% 0.047 316.3)
XYZxyz(1.2589, 0.9259, 2.1195)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221228 #182812
analogous
#171228 #221228 #281223
triadic
#221228 #282212 #122822
tetradic
#221228 #281712 #182812 #122328
square
#221228 #281712 #182812 #122328
split-complementary
#221228 #232812 #122817
monochromatic
#120915 #120915 #221228 #462552 #6A387C

Accessibility & contrast

On white

17.72
#221228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#221228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221228
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221228#FFFFFF#000000##FFFFFF
##2212281.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1729
Deuteranopia (green-blind)
#121927
Tritanopia (blue-blind)
#22151B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #221228;
/* rgb */ color: rgb(34, 18, 40);
/* oklch */ color: oklch(21.5% 0.047 316.3);
Tailwind
colors: {
  custom: {
    50: '#5d5062',
    500: '#221228',
    950: '#000000',
  },
}
SCSS
$custom: #221228;
$custom-light: #5d5062;
$custom-dark: #000000;
JSON
{
  "hex": "#221228",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 283.636,
    "s": 37.931,
    "l": 11.373
  },
  "oklch": {
    "l": 0.21542,
    "c": 0.04725,
    "h": 316.3
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#221228
secondary
#425F37
accent
#CE5A7A
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #221228

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

Preview Lab → · Contrast checker → · Palette generator →

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