#22124B#22124B

#22124B is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.099 H 289.9°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#22124B
RGBrgb(34, 18, 75)
HSLhsl(257, 61%, 18%)
HSVhsv(257, 76%, 29%)
CMYKcmyk(54.7%, 76%, 0%, 70.6%)
CIE-LABlab(11.14, 24.33, -32.52)
CIE-LCHlch(11.14, 40.61, 306.81°)
OKLaboklab(24.46% 0.0338 -0.0933)
OKLCHoklch(24.46% 0.099 289.9)
XYZxyz(2.1456, 1.2806, 6.7894)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22124B #3B4B12
analogous
#121E4B #22124B #3E124B
triadic
#22124B #4B2212 #124B22
tetradic
#22124B #4B121E #3B4B12 #124B3E
square
#22124B #4B121E #3B4B12 #124B3E
split-complementary
#22124B #4B3E12 #1E4B12
monochromatic
#0B0619 #0C061A #22124B #381E7C #4F2AAE

Accessibility & contrast

On white

16.72
#22124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#22124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22124B
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22124B#FFFFFF#000000##FFFFFF
##22124B1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001C4A
Tritanopia (blue-blind)
#14202C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #22124b;
/* rgb */ color: rgb(34, 18, 75);
/* oklch */ color: oklch(24.5% 0.099 289.9);
Tailwind
colors: {
  custom: {
    50: '#62517e',
    500: '#22124b',
    950: '#000000',
  },
}
SCSS
$custom: #22124b;
$custom-light: #62517e;
$custom-dark: #000000;
JSON
{
  "hex": "#22124b",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 256.842,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24458,
    "c": 0.09921,
    "h": 289.9
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#22124B
secondary
#6E8435
accent
#E443B7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22124B

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

Preview Lab → · Contrast checker → · Palette generator →

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