#22145E#22145E

#22145E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.123 H 282.9°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#22145E
RGBrgb(34, 20, 94)
HSLhsl(251, 65%, 22%)
HSVhsv(251, 79%, 37%)
CMYKcmyk(63.8%, 78.7%, 0%, 63.1%)
CIE-LABlab(13.52, 29.52, -41.54)
CIE-LCHlch(13.52, 50.96, 305.40°)
OKLaboklab(26.75% 0.0275 -0.1197)
OKLCHoklch(26.75% 0.123 282.9)
XYZxyz(2.9296, 1.6483, 10.7513)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22145E #505E14
analogous
#142B5E #22145E #47145E
triadic
#22145E #5E2214 #145E22
tetradic
#22145E #5E142B #505E14 #145E47
square
#22145E #5E142B #505E14 #145E47
split-complementary
#22145E #5E4714 #2B5E14
monochromatic
#090519 #10092C #22145E #341F90 #4729C3

Accessibility & contrast

On white

15.79
#22145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22145E
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22145E#FFFFFF#000000##FFFFFF
##22145E1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #22145e;
/* rgb */ color: rgb(34, 20, 94);
/* oklch */ color: oklch(26.7% 0.123 282.9);
Tailwind
colors: {
  custom: {
    50: '#66538c',
    500: '#22145e',
    950: '#000000',
  },
}
SCSS
$custom: #22145e;
$custom-light: #66538c;
$custom-dark: #000000;
JSON
{
  "hex": "#22145e",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 251.351,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26748,
    "c": 0.12284,
    "h": 282.9
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#22145E
secondary
#849638
accent
#E840C8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #22145E

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

Preview Lab → · Contrast checker → · Palette generator →

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