#22124A#22124A

#22124A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.098 H 290.4°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#22124A
RGBrgb(34, 18, 74)
HSLhsl(257, 61%, 18%)
HSVhsv(257, 76%, 29%)
CMYKcmyk(54.1%, 75.7%, 0%, 71%)
CIE-LABlab(11.04, 24.00, -31.98)
CIE-LCHlch(11.04, 39.98, 306.89°)
OKLaboklab(24.36% 0.034 -0.0917)
OKLCHoklch(24.36% 0.098 290.4)
XYZxyz(2.1117, 1.2670, 6.6105)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22124A #3A4A12
analogous
#121E4A #22124A #3E124A
triadic
#22124A #4A2212 #124A22
tetradic
#22124A #4A121E #3A4A12 #124A3E
square
#22124A #4A121E #3A4A12 #124A3E
split-complementary
#22124A #4A3E12 #1E4A12
monochromatic
#0B0619 #0B0619 #22124A #391E7B #4F2AAC

Accessibility & contrast

On white

16.75
#22124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#22124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22124A
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22124A#FFFFFF#000000##FFFFFF
##22124A1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001C49
Tritanopia (blue-blind)
#15202C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #22124a;
/* rgb */ color: rgb(34, 18, 74);
/* oklch */ color: oklch(24.4% 0.098 290.4);
Tailwind
colors: {
  custom: {
    50: '#62517d',
    500: '#22124a',
    950: '#000000',
  },
}
SCSS
$custom: #22124a;
$custom-light: #62517d;
$custom-dark: #000000;
JSON
{
  "hex": "#22124a",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 257.143,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2436,
    "c": 0.0978,
    "h": 290.4
  },
  "luminance": 0.01267
}

Semantic roles & 50–950 ramp

primary
#22124A
secondary
#6D8335
accent
#E444B6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22124A

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

Preview Lab → · Contrast checker → · Palette generator →

#22124A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva