#220227#220227

#220227 is a very dark, moderate purple. Relative luminance 0.005; OKLCH L 18.5% C 0.081 H 322.2°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#220227
RGBrgb(34, 2, 39)
HSLhsl(292, 90%, 8%)
HSVhsv(292, 95%, 15%)
CMYKcmyk(12.8%, 94.9%, 0%, 84.7%)
CIE-LABlab(4.79, 21.67, -16.63)
CIE-LCHlch(4.79, 27.32, 322.50°)
OKLaboklab(18.51% 0.0637 -0.0493)
OKLCHoklch(18.51% 0.081 322.2)
XYZxyz(1.0476, 0.5300, 1.9662)
Luminance0.0053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220227 #072702
analogous
#0F0227 #220227 #270219
triadic
#220227 #272202 #022722
tetradic
#220227 #270F02 #072702 #021927
square
#220227 #270F02 #072702 #021927
split-complementary
#220227 #192702 #02270F
monochromatic
#19011D #19011D #220227 #550561 #88089B

Accessibility & contrast

On white

18.99
#220227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220227
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220227#FFFFFF#000000##FFFFFF
##2202271.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E28
Deuteranopia (green-blind)
#061226
Tritanopia (blue-blind)
#230813
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #220227;
/* rgb */ color: rgb(34, 2, 39);
/* oklch */ color: oklch(18.5% 0.081 322.2);
Tailwind
colors: {
  custom: {
    50: '#5e4761',
    500: '#220227',
    950: '#000000',
  },
}
SCSS
$custom: #220227;
$custom-light: #5e4761;
$custom-dark: #000000;
JSON
{
  "hex": "#220227",
  "rgb": {
    "r": 34,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 291.892,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.1851,
    "c": 0.08053,
    "h": 322.2
  },
  "luminance": 0.0053
}

Semantic roles & 50–950 ramp

primary
#220227
secondary
#246C18
accent
#FF2946
background
#F5F4F5
surface
#E9E6E9
border
#C5C2C5
text
#040005
muted
#797779

Preview Lab

Preview with #220227

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

Preview Lab → · Contrast checker → · Palette generator →

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