#22124C#22124C

#22124C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.6% C 0.101 H 289.5°. Best body text is #FFFFFF at 16.68:1 contrast (WCAG AA passes).

Color values

HEX#22124C
RGBrgb(34, 18, 76)
HSLhsl(257, 62%, 18%)
HSVhsv(257, 76%, 30%)
CMYKcmyk(55.3%, 76.3%, 0%, 70.2%)
CIE-LABlab(11.24, 24.67, -33.05)
CIE-LCHlch(11.24, 41.24, 306.73°)
OKLaboklab(24.56% 0.0336 -0.0948)
OKLCHoklch(24.56% 0.101 289.5)
XYZxyz(2.1801, 1.2944, 6.9710)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22124C #3C4C12
analogous
#121F4C #22124C #3F124C
triadic
#22124C #4C2212 #124C22
tetradic
#22124C #4C121F #3C4C12 #124C3F
square
#22124C #4C121F #3C4C12 #124C3F
split-complementary
#22124C #4C3F12 #1F4C12
monochromatic
#0B0619 #0C061B #22124C #381E7D #4E29AF

Accessibility & contrast

On white

16.68
#22124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22124C
16.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22124C#FFFFFF#000000##FFFFFF
##22124C1.0016.681.2616.68
#FFFFFF16.681.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#13212D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #22124c;
/* rgb */ color: rgb(34, 18, 76);
/* oklch */ color: oklch(24.6% 0.101 289.5);
Tailwind
colors: {
  custom: {
    50: '#62517f',
    500: '#22124c',
    950: '#000000',
  },
}
SCSS
$custom: #22124c;
$custom-light: #62517f;
$custom-dark: #000000;
JSON
{
  "hex": "#22124c",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 256.552,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.24558,
    "c": 0.10061,
    "h": 289.5
  },
  "luminance": 0.01294
}

Semantic roles & 50–950 ramp

primary
#22124C
secondary
#6F8535
accent
#E543B8
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #22124C

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

Preview Lab → · Contrast checker → · Palette generator →

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