#22145A#22145A

#22145A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 284.0°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#22145A
RGBrgb(34, 20, 90)
HSLhsl(252, 64%, 22%)
HSVhsv(252, 78%, 35%)
CMYKcmyk(62.2%, 77.8%, 0%, 64.7%)
CIE-LABlab(13.10, 28.16, -39.55)
CIE-LCHlch(13.10, 48.55, 305.45°)
OKLaboklab(26.32% 0.0285 -0.1139)
OKLCHoklch(26.32% 0.117 284)
XYZxyz(2.7547, 1.5784, 9.8304)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22145A #4C5A14
analogous
#14295A #22145A #45145A
triadic
#22145A #5A2214 #145A22
tetradic
#22145A #5A1429 #4C5A14 #145A45
square
#22145A #5A1429 #4C5A14 #145A45
split-complementary
#22145A #5A4514 #295A14
monochromatic
#090619 #0F0928 #22145A #351F8C #482ABE

Accessibility & contrast

On white

15.96
#22145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22145A
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22145A#FFFFFF#000000##FFFFFF
##22145A1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#042735
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #22145a;
/* rgb */ color: rgb(34, 20, 90);
/* oklch */ color: oklch(26.3% 0.117 284.0);
Tailwind
colors: {
  custom: {
    50: '#655389',
    500: '#22145a',
    950: '#000000',
  },
}
SCSS
$custom: #22145a;
$custom-light: #655389;
$custom-dark: #000000;
JSON
{
  "hex": "#22145a",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 252,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26319,
    "c": 0.11742,
    "h": 284
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#22145A
secondary
#809238
accent
#E741C6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22145A

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

Preview Lab → · Contrast checker → · Palette generator →

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