#22145C#22145C

#22145C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.120 H 283.5°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#22145C
RGBrgb(34, 20, 92)
HSLhsl(252, 64%, 22%)
HSVhsv(252, 78%, 36%)
CMYKcmyk(63%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.31, 28.84, -40.55)
CIE-LCHlch(13.31, 49.76, 305.42°)
OKLaboklab(26.53% 0.028 -0.1168)
OKLCHoklch(26.53% 0.12 283.5)
XYZxyz(2.8410, 1.6129, 10.2848)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22145C #4E5C14
analogous
#142A5C #22145C #46145C
triadic
#22145C #5C2214 #145C22
tetradic
#22145C #5C142A #4E5C14 #145C46
square
#22145C #5C142A #4E5C14 #145C46
split-complementary
#22145C #5C4614 #2A5C14
monochromatic
#090519 #0F092A #22145C #351F8E #472AC1

Accessibility & contrast

On white

15.88
#22145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#22145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22145C
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22145C#FFFFFF#000000##FFFFFF
##22145C1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#012836
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #22145c;
/* rgb */ color: rgb(34, 20, 92);
/* oklch */ color: oklch(26.5% 0.120 283.5);
Tailwind
colors: {
  custom: {
    50: '#65538b',
    500: '#22145c',
    950: '#000000',
  },
}
SCSS
$custom: #22145c;
$custom-light: #65538b;
$custom-dark: #000000;
JSON
{
  "hex": "#22145c",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 251.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26532,
    "c": 0.12014,
    "h": 283.5
  },
  "luminance": 0.01613
}

Semantic roles & 50–950 ramp

primary
#22145C
secondary
#829438
accent
#E741C7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22145C

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

Preview Lab → · Contrast checker → · Palette generator →

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