#221173#221173

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

Color values

HEX#221173
RGBrgb(34, 17, 115)
HSLhsl(250, 74%, 26%)
HSVhsv(250, 85%, 45%)
CMYKcmyk(70.4%, 85.2%, 0%, 54.9%)
CIE-LABlab(15.37, 38.01, -52.30)
CIE-LCHlch(15.37, 64.65, 306.01°)
OKLaboklab(28.76% 0.023 -0.151)
OKLCHoklch(28.76% 0.153 278.7)
XYZxyz(3.9537, 1.9784, 16.3899)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221173 #627311
analogous
#113173 #221173 #531173
triadic
#221173 #732211 #117322
tetradic
#221173 #731131 #627311 #117353
square
#221173 #731131 #627311 #117353
split-complementary
#221173 #735311 #317311
monochromatic
#08041B #12093E #221173 #3219A8 #4221DE

Accessibility & contrast

On white

15.05
#221173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221173
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221173#FFFFFF#000000##FFFFFF
##2211731.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002271
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221173;
/* rgb */ color: rgb(34, 17, 115);
/* oklch */ color: oklch(28.8% 0.153 278.7);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#221173',
    950: '#000000',
  },
}
SCSS
$custom: #221173;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#221173",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 250.408,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28757,
    "c": 0.15278,
    "h": 278.7
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#221173
secondary
#96AA36
accent
#F137D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #221173

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

Preview Lab → · Contrast checker → · Palette generator →

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