#221170#221170

#221170 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.149 H 279.3°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#221170
RGBrgb(34, 17, 112)
HSLhsl(251, 74%, 25%)
HSVhsv(251, 85%, 44%)
CMYKcmyk(69.6%, 84.8%, 0%, 56.1%)
CIE-LABlab(15.01, 37.06, -50.95)
CIE-LCHlch(15.01, 63.01, 306.03°)
OKLaboklab(28.4% 0.024 -0.1471)
OKLCHoklch(28.4% 0.149 279.3)
XYZxyz(3.7838, 1.9105, 15.4955)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221170 #5F7011
analogous
#112F70 #221170 #511170
triadic
#221170 #702211 #117022
tetradic
#221170 #70112F #5F7011 #117051
square
#221170 #70112F #5F7011 #117051
split-complementary
#221170 #705111 #2F7011
monochromatic
#08041B #12093B #221170 #3219A5 #4221DA

Accessibility & contrast

On white

15.19
#221170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#221170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221170
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221170#FFFFFF#000000##FFFFFF
##2211701.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00226E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221170;
/* rgb */ color: rgb(34, 17, 112);
/* oklch */ color: oklch(28.4% 0.149 279.3);
Tailwind
colors: {
  custom: {
    50: '#6a539a',
    500: '#221170',
    950: '#000000',
  },
}
SCSS
$custom: #221170;
$custom-light: #6a539a;
$custom-dark: #000000;
JSON
{
  "hex": "#221170",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 250.737,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.284,
    "c": 0.14908,
    "h": 279.3
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#221170
secondary
#93A735
accent
#F037CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #221170

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

Preview Lab → · Contrast checker → · Palette generator →

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