#221174#221174

#221174 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.154 H 278.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#221174
RGBrgb(34, 17, 116)
HSLhsl(250, 74%, 26%)
HSVhsv(250, 85%, 45%)
CMYKcmyk(70.7%, 85.3%, 0%, 54.5%)
CIE-LABlab(15.50, 38.33, -52.74)
CIE-LCHlch(15.50, 65.20, 306.01°)
OKLaboklab(28.88% 0.0227 -0.1523)
OKLCHoklch(28.88% 0.154 278.5)
XYZxyz(4.0115, 2.0016, 16.6946)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221174 #637411
analogous
#113174 #221174 #531174
triadic
#221174 #742211 #117422
tetradic
#221174 #741131 #637411 #117453
square
#221174 #741131 #637411 #117453
split-complementary
#221174 #745311 #317411
monochromatic
#08041B #12093F #221174 #3219A9 #4121DE

Accessibility & contrast

On white

15.00
#221174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221174
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221174#FFFFFF#000000##FFFFFF
##2211741.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A77
Deuteranopia (green-blind)
#002372
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #221174;
/* rgb */ color: rgb(34, 17, 116);
/* oklch */ color: oklch(28.9% 0.154 278.5);
Tailwind
colors: {
  custom: {
    50: '#6b539d',
    500: '#221174',
    950: '#000000',
  },
}
SCSS
$custom: #221174;
$custom-light: #6b539d;
$custom-dark: #000000;
JSON
{
  "hex": "#221174",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 250.303,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28877,
    "c": 0.15402,
    "h": 278.5
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#221174
secondary
#97AB36
accent
#F137D1
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #221174

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

Preview Lab → · Contrast checker → · Palette generator →

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