#221272#221272

#221272 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.151 H 278.7°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#221272
RGBrgb(34, 18, 114)
HSLhsl(250, 73%, 26%)
HSVhsv(250, 84%, 45%)
CMYKcmyk(70.2%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.42, 37.20, -51.57)
CIE-LCHlch(15.42, 63.59, 305.81°)
OKLaboklab(28.75% 0.0229 -0.1489)
OKLCHoklch(28.75% 0.151 278.7)
XYZxyz(3.9123, 1.9873, 16.0937)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221272 #627212
analogous
#123272 #221272 #521272
triadic
#221272 #722212 #127222
tetradic
#221272 #721232 #627212 #127252
square
#221272 #721232 #627212 #127252
split-complementary
#221272 #725212 #327212
monochromatic
#08041A #120A3D #221272 #321AA7 #4223DC

Accessibility & contrast

On white

15.03
#221272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#221272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221272
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221272#FFFFFF#000000##FFFFFF
##2212721.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #221272;
/* rgb */ color: rgb(34, 18, 114);
/* oklch */ color: oklch(28.8% 0.151 278.7);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#221272',
    950: '#000000',
  },
}
SCSS
$custom: #221272;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#221272",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 250,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28754,
    "c": 0.15069,
    "h": 278.7
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#221272
secondary
#96A937
accent
#EF38D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #221272

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

Preview Lab → · Contrast checker → · Palette generator →

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