#221362#221362

#221362 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.129 H 282.1°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#221362
RGBrgb(34, 19, 98)
HSLhsl(251, 68%, 23%)
HSVhsv(251, 81%, 38%)
CMYKcmyk(65.3%, 80.6%, 0%, 61.6%)
CIE-LABlab(13.75, 31.45, -43.83)
CIE-LCHlch(13.75, 53.94, 305.66°)
OKLaboklab(27.04% 0.0272 -0.1264)
OKLCHoklch(27.04% 0.129 282.1)
XYZxyz(3.0965, 1.6874, 11.7154)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221362 #536213
analogous
#132C62 #221362 #491362
triadic
#221362 #622213 #136222
tetradic
#221362 #62132C #536213 #136249
square
#221362 #62132C #536213 #136249
split-complementary
#221362 #624913 #2C6213
monochromatic
#09051A #10092F #221362 #341D95 #4627C9

Accessibility & contrast

On white

15.70
#221362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#221362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221362
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221362#FFFFFF#000000##FFFFFF
##2213621.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002061
Tritanopia (blue-blind)
#002A3A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #221362;
/* rgb */ color: rgb(34, 19, 98);
/* oklch */ color: oklch(27.0% 0.129 282.1);
Tailwind
colors: {
  custom: {
    50: '#675390',
    500: '#221362',
    950: '#000000',
  },
}
SCSS
$custom: #221362;
$custom-light: #675390;
$custom-dark: #000000;
JSON
{
  "hex": "#221362",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 251.392,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27042,
    "c": 0.12928,
    "h": 282.1
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#221362
secondary
#879A37
accent
#EA3DCA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #221362

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

Preview Lab → · Contrast checker → · Palette generator →

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