#22104B#22104B

#22104B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.102 H 290.7°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#22104B
RGBrgb(34, 16, 75)
HSLhsl(258, 65%, 18%)
HSVhsv(258, 79%, 29%)
CMYKcmyk(54.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(10.69, 25.57, -33.24)
CIE-LCHlch(10.69, 41.94, 307.56°)
OKLaboklab(24.14% 0.036 -0.0954)
OKLCHoklch(24.14% 0.102 290.7)
XYZxyz(2.1146, 1.2186, 6.7790)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22104B #394B10
analogous
#101B4B #22104B #3F104B
triadic
#22104B #4B2210 #104B22
tetradic
#22104B #4B101B #394B10 #104B3F
square
#22104B #4B101B #394B10 #104B3F
split-complementary
#22104B #4B3F10 #1B4B10
monochromatic
#0B0519 #0B0519 #22104B #391B7D #5026B0

Accessibility & contrast

On white

16.88
#22104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#22104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22104B
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22104B#FFFFFF#000000##FFFFFF
##22104B1.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#141F2C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #22104b;
/* rgb */ color: rgb(34, 16, 75);
/* oklch */ color: oklch(24.1% 0.102 290.7);
Tailwind
colors: {
  custom: {
    50: '#62507e',
    500: '#22104b',
    950: '#000000',
  },
}
SCSS
$custom: #22104b;
$custom-light: #62507e;
$custom-dark: #000000;
JSON
{
  "hex": "#22104b",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 258.305,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.24141,
    "c": 0.10196,
    "h": 290.7
  },
  "luminance": 0.01219
}

Semantic roles & 50–950 ramp

primary
#22104B
secondary
#6C8532
accent
#E840B5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22104B

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

Preview Lab → · Contrast checker → · Palette generator →

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