#220228#220228

#220228 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.6% C 0.082 H 321.1°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#220228
RGBrgb(34, 2, 40)
HSLhsl(291, 90%, 8%)
HSVhsv(291, 95%, 16%)
CMYKcmyk(15%, 95%, 0%, 84.3%)
CIE-LABlab(4.85, 22.00, -17.30)
CIE-LCHlch(4.85, 27.99, 321.82°)
OKLaboklab(18.6% 0.0635 -0.0511)
OKLCHoklch(18.6% 0.082 321.1)
XYZxyz(1.0644, 0.5368, 2.0546)
Luminance0.0054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220228 #082802
analogous
#0F0228 #220228 #28021B
triadic
#220228 #282202 #022822
tetradic
#220228 #280F02 #082802 #021B28
square
#220228 #280F02 #082802 #021B28
split-complementary
#220228 #1B2802 #02280F
monochromatic
#19011D #19011D #220228 #540562 #85089D

Accessibility & contrast

On white

18.96
#220228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#220228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220228
18.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220228#FFFFFF#000000##FFFFFF
##2202281.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E29
Deuteranopia (green-blind)
#051227
Tritanopia (blue-blind)
#220814
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #220228;
/* rgb */ color: rgb(34, 2, 40);
/* oklch */ color: oklch(18.6% 0.082 321.1);
Tailwind
colors: {
  custom: {
    50: '#5e4762',
    500: '#220228',
    950: '#000000',
  },
}
SCSS
$custom: #220228;
$custom-light: #5e4762;
$custom-dark: #000000;
JSON
{
  "hex": "#220228",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 290.526,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.18597,
    "c": 0.08153,
    "h": 321.1
  },
  "luminance": 0.00537
}

Semantic roles & 50–950 ramp

primary
#220228
secondary
#266D19
accent
#FF294B
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#040005
muted
#797779

Preview Lab

Preview with #220228

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

Preview Lab → · Contrast checker → · Palette generator →

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