#22124F#22124F

#22124F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.105 H 288.3°. Best body text is #FFFFFF at 16.57:1 contrast (WCAG AA passes).

Color values

HEX#22124F
RGBrgb(34, 18, 79)
HSLhsl(256, 63%, 19%)
HSVhsv(256, 77%, 31%)
CMYKcmyk(57%, 77.2%, 0%, 69%)
CIE-LABlab(11.53, 25.67, -34.64)
CIE-LCHlch(11.53, 43.11, 306.55°)
OKLaboklab(24.86% 0.033 -0.0995)
OKLCHoklch(24.86% 0.105 288.3)
XYZxyz(2.2869, 1.3371, 7.5332)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22124F #3F4F12
analogous
#12214F #22124F #41124F
triadic
#22124F #4F2212 #124F22
tetradic
#22124F #4F1221 #3F4F12 #124F41
square
#22124F #4F1221 #3F4F12 #124F41
split-complementary
#22124F #4F4112 #214F12
monochromatic
#0B0619 #0D071D #22124F #371D81 #4D29B3

Accessibility & contrast

On white

16.57
#22124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#22124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22124F
16.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22124F#FFFFFF#000000##FFFFFF
##22124F1.0016.571.2716.57
#FFFFFF16.571.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001D4E
Tritanopia (blue-blind)
#11222F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #22124f;
/* rgb */ color: rgb(34, 18, 79);
/* oklch */ color: oklch(24.9% 0.105 288.3);
Tailwind
colors: {
  custom: {
    50: '#635181',
    500: '#22124f',
    950: '#000000',
  },
}
SCSS
$custom: #22124f;
$custom-light: #635181;
$custom-dark: #000000;
JSON
{
  "hex": "#22124f",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 255.738,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24861,
    "c": 0.1048,
    "h": 288.3
  },
  "luminance": 0.01337
}

Semantic roles & 50–950 ramp

primary
#22124F
secondary
#728835
accent
#E642BB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #22124F

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

Preview Lab → · Contrast checker → · Palette generator →

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