#22104D#22104D

#22104D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.105 H 289.8°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#22104D
RGBrgb(34, 16, 77)
HSLhsl(258, 66%, 18%)
HSVhsv(258, 79%, 30%)
CMYKcmyk(55.8%, 79.2%, 0%, 69.8%)
CIE-LABlab(10.90, 26.22, -34.30)
CIE-LCHlch(10.90, 43.17, 307.40°)
OKLaboklab(24.35% 0.0355 -0.0985)
OKLCHoklch(24.35% 0.105 289.8)
XYZxyz(2.1841, 1.2464, 7.1452)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22104D #3B4D10
analogous
#101C4D #22104D #40104D
triadic
#22104D #4D2210 #104D22
tetradic
#22104D #4D101C #3B4D10 #104D40
square
#22104D #4D101C #3B4D10 #104D40
split-complementary
#22104D #4D4010 #1C4D10
monochromatic
#0B0519 #0C051A #22104D #381B80 #4F25B2

Accessibility & contrast

On white

16.81
#22104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22104D
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22104D#FFFFFF#000000##FFFFFF
##22104D1.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#13202D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #22104d;
/* rgb */ color: rgb(34, 16, 77);
/* oklch */ color: oklch(24.3% 0.105 289.8);
Tailwind
colors: {
  custom: {
    50: '#63507f',
    500: '#22104d',
    950: '#000000',
  },
}
SCSS
$custom: #22104d;
$custom-light: #63507f;
$custom-dark: #000000;
JSON
{
  "hex": "#22104d",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 257.705,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24346,
    "c": 0.1047,
    "h": 289.8
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#22104D
secondary
#6E8732
accent
#E93FB7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22104D

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

Preview Lab → · Contrast checker → · Palette generator →

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