#22165C#22165C

#22165C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.118 H 282.9°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#22165C
RGBrgb(34, 22, 92)
HSLhsl(250, 61%, 22%)
HSVhsv(250, 76%, 36%)
CMYKcmyk(63%, 76.1%, 0%, 63.9%)
CIE-LABlab(13.75, 27.62, -39.83)
CIE-LCHlch(13.75, 48.47, 304.74°)
OKLaboklab(26.84% 0.0263 -0.1147)
OKLCHoklch(26.84% 0.118 282.9)
XYZxyz(2.8778, 1.6864, 10.2970)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22165C #505C16
analogous
#162D5C #22165C #45165C
triadic
#22165C #5C2216 #165C22
tetradic
#22165C #5C162D #505C16 #165C45
square
#22165C #5C162D #505C16 #165C45
split-complementary
#22165C #5C4516 #2D5C16
monochromatic
#090619 #100A2B #22165C #34228D #472EBF

Accessibility & contrast

On white

15.70
#22165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#22165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##22165C#FFFFFF#000000##FFFFFF
##22165C1.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)
#00255E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#012937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22165c;
/* rgb */ color: rgb(34, 22, 92);
/* oklch */ color: oklch(26.8% 0.118 282.9);
Tailwind
colors: {
  custom: {
    50: '#65548b',
    500: '#22165c',
    950: '#000000',
  },
}
SCSS
$custom: #22165c;
$custom-light: #65548b;
$custom-dark: #000000;
JSON
{
  "hex": "#22165c",
  "rgb": {
    "r": 34,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 250.286,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26844,
    "c": 0.11769,
    "h": 282.9
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#22165C
secondary
#84933B
accent
#E543C9
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #22165C

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

Preview Lab → · Contrast checker → · Palette generator →

#22165C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva