#221072#221072

#221072 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.152 H 279.0°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#221072
RGBrgb(34, 16, 114)
HSLhsl(251, 75%, 25%)
HSVhsv(251, 86%, 45%)
CMYKcmyk(70.2%, 86%, 0%, 55.3%)
CIE-LABlab(15.09, 38.17, -52.12)
CIE-LCHlch(15.09, 64.60, 306.22°)
OKLaboklab(28.53% 0.0238 -0.1505)
OKLCHoklch(28.53% 0.152 279)
XYZxyz(3.8813, 1.9252, 16.0834)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221072 #607210
analogous
#102F72 #221072 #531072
triadic
#221072 #722210 #107222
tetradic
#221072 #72102F #607210 #107253
square
#221072 #72102F #607210 #107253
split-complementary
#221072 #725310 #2F7210
monochromatic
#08041B #12083C #221072 #3218A8 #421FDD

Accessibility & contrast

On white

15.16
#221072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#221072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221072
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221072#FFFFFF#000000##FFFFFF
##2210721.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221072;
/* rgb */ color: rgb(34, 16, 114);
/* oklch */ color: oklch(28.5% 0.152 279.0);
Tailwind
colors: {
  custom: {
    50: '#6b529c',
    500: '#221072',
    950: '#000000',
  },
}
SCSS
$custom: #221072;
$custom-light: #6b529c;
$custom-dark: #000000;
JSON
{
  "hex": "#221072",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 251.02,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28526,
    "c": 0.15238,
    "h": 279
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#221072
secondary
#94A934
accent
#F236CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #221072

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

Preview Lab → · Contrast checker → · Palette generator →

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