#22145F#22145F

#22145F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.124 H 282.7°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#22145F
RGBrgb(34, 20, 95)
HSLhsl(251, 65%, 23%)
HSVhsv(251, 79%, 37%)
CMYKcmyk(64.2%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.63, 29.86, -42.03)
CIE-LCHlch(13.63, 51.56, 305.39°)
OKLaboklab(26.86% 0.0272 -0.1212)
OKLCHoklch(26.86% 0.124 282.7)
XYZxyz(2.9748, 1.6664, 10.9891)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22145F #515F14
analogous
#142C5F #22145F #47145F
triadic
#22145F #5F2214 #145F22
tetradic
#22145F #5F142C #515F14 #145F47
square
#22145F #5F142C #515F14 #145F47
split-complementary
#22145F #5F4714 #2C5F14
monochromatic
#090519 #10092C #22145F #341F92 #4629C4

Accessibility & contrast

On white

15.75
#22145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#22145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22145F
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22145F#FFFFFF#000000##FFFFFF
##22145F1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #22145f;
/* rgb */ color: rgb(34, 20, 95);
/* oklch */ color: oklch(26.9% 0.124 282.7);
Tailwind
colors: {
  custom: {
    50: '#66538d',
    500: '#22145f',
    950: '#000000',
  },
}
SCSS
$custom: #22145f;
$custom-light: #66538d;
$custom-dark: #000000;
JSON
{
  "hex": "#22145f",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 251.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26856,
    "c": 0.12418,
    "h": 282.7
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#22145F
secondary
#859738
accent
#E840C9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22145F

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

Preview Lab → · Contrast checker → · Palette generator →

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