#22104C#22104C

#22104C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.103 H 290.2°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#22104C
RGBrgb(34, 16, 76)
HSLhsl(258, 65%, 18%)
HSVhsv(258, 79%, 30%)
CMYKcmyk(55.3%, 78.9%, 0%, 70.2%)
CIE-LABlab(10.79, 25.89, -33.77)
CIE-LCHlch(10.79, 42.56, 307.48°)
OKLaboklab(24.24% 0.0358 -0.0969)
OKLCHoklch(24.24% 0.103 290.2)
XYZxyz(2.1491, 1.2324, 6.9607)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22104C #3A4C10
analogous
#101C4C #22104C #40104C
triadic
#22104C #4C2210 #104C22
tetradic
#22104C #4C101C #3A4C10 #104C40
square
#22104C #4C101C #3A4C10 #104C40
split-complementary
#22104C #4C4010 #1C4C10
monochromatic
#0B0519 #0B0519 #22104C #391B7F #4F25B1

Accessibility & contrast

On white

16.85
#22104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#22104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22104C
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22104C#FFFFFF#000000##FFFFFF
##22104C1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001C4B
Tritanopia (blue-blind)
#14202C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #22104c;
/* rgb */ color: rgb(34, 16, 76);
/* oklch */ color: oklch(24.2% 0.103 290.2);
Tailwind
colors: {
  custom: {
    50: '#62507f',
    500: '#22104c',
    950: '#000000',
  },
}
SCSS
$custom: #22104c;
$custom-light: #62507f;
$custom-dark: #000000;
JSON
{
  "hex": "#22104c",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 258,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24243,
    "c": 0.10333,
    "h": 290.2
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#22104C
secondary
#6D8632
accent
#E840B6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22104C

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

Preview Lab → · Contrast checker → · Palette generator →

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